lkml.org 
[lkml]   [1999]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjecthelp with new syscall
I am trying to add a new system call to my kernel, which is 2.0.36. 
When trying to call this from userland, using a function created with
_syscall1, I get the error that the function is not implemented errno
38.

I have added
#define __NR_newop 190
to unistd.h

I have also added
.long SYMBOL_NAME(sys_newop) /* 190 */
to entry.S

and changed the line after that to:
.space (NR_syscalls-190)*4.

I put source code in kernel/newop.c and added newop.o to the O_OBJS in
kernel/Makefile.

I have also rebuilt the kernel from scratch, make dep; make clean; make
zImage, and booted off this image.

Is there anything else I need to do?

Thanks a lot!
Tim

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.019 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site