adding new system call??

adding new system call??

Post by dongwon Le » Mon, 10 May 1999 04:00:00



I made my own system call and kerenl complie and reboot.

and the book said (linux kernel internals 2nd)
register the system call to library fuction for using this system call in
application.

so I made a C code

 #include <linux/unistd.h>
 _syscall(int, holydive)

and then ... I don't kown what I need to do?
How I compile the C code for registering?

My system call is
 asmlinkage int sys_holydive(void)
 {
 return 1;
 }

 
 
 

adding new system call??

Post by Matthias Wark » Mon, 10 May 1999 04:00:00


It was the Sun, 9 May 1999 17:54:06 +0900...

Quote:> I made my own system call and kerenl complie and reboot.

> and the book said (linux kernel internals 2nd)
> register the system call to library fuction for using this system call in
> application.

> so I made a C code

>  #include <linux/unistd.h>
>  _syscall(int, holydive)

Um, what does that call do? :)

mawa
--
Come home at night with a swirling in my head, Reach for the pillow,
miss the whole darn bed
                                -- Joe Riggens, "Drunk", '50 R&B song.

 
 
 

adding new system call??

Post by dongwon Le » Tue, 11 May 1999 04:00:00


Matthias Warkus (?) ?T??????- ??o?????...

>It was the Sun, 9 May 1999 17:54:06 +0900...

>> I made my own system call and kerenl complie and reboot.

>> and the book said (linux kernel internals 2nd)
>> register the system call to library fuction for using this system call in
>> application.

>> so I made a C code

>>  #include <linux/unistd.h>
>>  _syscall(int, holydive)

>Um, what does that call do? :)

Just return 1