Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Closed Thread
  Search this Thread
Old 03-21-2008, 04:48 AM   #1
LQ Newbie
Registered: Mar 2008
Posts: 18

Rep: Reputation: 0
Create a new system call

I would like to create a new system call with the help of process manager whick accepts an integer and prints its square.
Please any help
Old 03-21-2008, 07:44 AM   #2
Registered: Jul 2005
Distribution: Debian
Posts: 94

Rep: Reputation: Disabled

Are you sure you mean a system call, and not, say, a program? Creating a new system call would require creating and loading a kernel module. It would also have nothing to do with your process manager.

Now, given the open nature of Linux, this is entirely possible, but I suspect that anyone getting in to kernel hacking would know enough to a) know about /usr/src/linux-headers-* b) know how to find this info on his/her own.

So in summation, confirm that you really want to create a system call, and not a program. Then use Google, or your favorite alternative search engine.

PS - Is this a school homework assignment? If so, go earn your own damn degree.
Edit: By the list of other posts by this user, it sure looks like it.

Last edited by felixc; 03-21-2008 at 07:46 AM.
Old 03-21-2008, 10:18 AM   #3
Registered User
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15
shell syntax

If your definition of a 'system call' means anything that is available on the commandline (also called console, terminal, shell), then you need something like:

$ echo $((2*2))
Hope this helps,
Old 03-21-2008, 05:42 PM   #4
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I would like to create a new system call with the help of process manager whick accepts an integer and prints its square.
Can you please post your homework assignment verbatim?
The question is rather ambiguous.

Oh, wait, you're not allowed to post homework questions,
even less so in Greek. Silly me.


P.S.: Thread closed.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i make centos 4.5's system call using vDSO(call *%gs:0x10) instead of int80 tclwp Red Hat 3 08-06-2007 01:07 AM
How do I include my own system call in file system driver kgp Linux - Kernel 3 06-06-2007 11:41 AM
tracing 'create' system call called by any process to kernel viv_nan Linux - General 3 03-07-2007 12:09 PM
Calling a system call from a system call? Loc_8 Programming 0 09-16-2006 05:21 PM
How to create a system call in Fedora Core1? soner Linux - General 1 10-27-2004 11:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration