All of lore.kernel.org
 help / color / mirror / Atom feed
* system call
@ 2002-07-08 10:15 Bruno Pujol
  2002-07-08 15:16 ` Randy.Dunlap
  0 siblings, 1 reply; 17+ messages in thread
From: Bruno Pujol @ 2002-07-08 10:15 UTC (permalink / raw)
  To: linux-kernel

Hi,

Do someone know how to add a system call for the kernel 2.4.8 ?

I did know how to do it for an older version (2.0.35) :
- add a line in the file : /usr/src/linux/include/asm/unistd.h
	#define __NR_my_systemcall	XXXX (where XXXX is the number for my new system call)

- modify the file /usr/src/linux/arch/i386/kernel/entry.S
	- add my system call 
		.long SYMBOL_NAME (my_systemcall) at the end of the system callslist
	- modify le last line of the file :
		.space (NR_syscalls-166)*4   <= replace the 166 by 167


After this changes, I only needed to recompile the kernel and reboot with it... and a user's program could use the new system call...
But with my new kernel, this manupilation doesn't still work.

PUJOL Bruno

^ permalink raw reply	[flat|nested] 17+ messages in thread
* system call
@ 2011-06-11  9:39 Venkateswarlu P
  2011-06-11  9:58 ` Rajat Sharma
  2011-06-11 17:59 ` Javier Martinez Canillas
  0 siblings, 2 replies; 17+ messages in thread
From: Venkateswarlu P @ 2011-06-11  9:39 UTC (permalink / raw)
  To: kernelnewbies

Where do i find system call implementation code? *for  read, write, open,
close*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110611/3aa5f27a/attachment.html 

^ permalink raw reply	[flat|nested] 17+ messages in thread
* system call
@ 2016-04-07  6:23 Nitin Varyani
  2016-04-07  6:30 ` Giedrius Statkevičius
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Nitin Varyani @ 2016-04-07  6:23 UTC (permalink / raw)
  To: kernelnewbies

Hi,
      I want to implement a system call as explained in Linux kernel
development by Robert Love.

He does three things
 adding entry to entry.S
adding entry to asm/unistd.h
and adding the system call code to sched.c


and then make + make install

I do not want to implement for all architectures but only for my PC which
is 64 bit. I am not able to locate files entry. S and unistd.h which he is
telling in his tutorial.
Please help me out to figure out the exact steps. Please also mention the
linux kernel version I should use.

Nitin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160407/c7282824/attachment.html 

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-04-09 14:46 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-08 10:15 system call Bruno Pujol
2002-07-08 15:16 ` Randy.Dunlap
2002-07-08 23:59   ` Vladimir Zidar
2002-07-09  0:13     ` Keith Owens
  -- strict thread matches above, loose matches on Subject: below --
2011-06-11  9:39 Venkateswarlu P
2011-06-11  9:58 ` Rajat Sharma
2011-06-11 17:59 ` Javier Martinez Canillas
2016-04-07  6:23 Nitin Varyani
2016-04-07  6:30 ` Giedrius Statkevičius
2016-04-07  6:45 ` Sharath Chandra
2016-04-07  7:38 ` Pranay Srivastava
2016-04-09 11:33   ` Nitin Varyani
2016-04-09 14:09     ` Pranay Srivastava
2016-04-09 14:21       ` Nitin Varyani
2016-04-09 14:34         ` Pranay Srivastava
2016-04-09 14:41           ` Nitin Varyani
2016-04-09 14:46             ` Pranay Srivastava

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.