process of creating system call
Hi ..,
how to create a new system call Linux? what is the process of creating ?my project is to create a system call for displaying owner of a file..where exactly we have to write the system call code? and where are the places need to change ? Thank u |
You just need to create a binary program that performs the actions you wish and then place that in a directory that is included in your path; typically /usr/sbin is a good choice.
If you're talking about adding to your shell, then you'll need to grab the source for that shell and rebuild it. Typically that's not a necessity and you just need a script or executable that accomplishes the task you wish. For that matter, you can use a script to get the output of ls and use sed to edit that output to be in a suitable form. |
Quote:
|
This might help
http://www.amazon.com/Linux-Kernel-D.../dp/0672325128 There is enough material available on line if you search |
and hit out Google with the keywords:
Tldp implementing a system call Linux 2.6 |
Moved: This thread is more suitable in <PROGRAMMING> and has been moved accordingly to help your thread/question get the exposure it deserves.
|
All times are GMT -5. The time now is 12:51 AM. |