LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Closed Thread
  Search this Thread
Old 03-21-2008, 03:48 AM   #1
jianelisj
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, 06:44 AM   #2
felixc
Member
 
Registered: Jul 2005
Distribution: Debian
Posts: 94

Rep: Reputation: Disabled
Hi,

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 06:46 AM.
 
Old 03-21-2008, 09:18 AM   #3
simplicissimus
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:

Code:
$ echo $((2*2))
4
Hope this helps,
Regards,
SIMP
 
Old 03-21-2008, 04:42 PM   #4
Tinkster
Moderator
 
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
Quote:
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.



Cheers,
Tink


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 12:07 AM
How do I include my own system call in file system driver kgp Linux - Kernel 3 06-06-2007 10:41 AM
tracing 'create' system call called by any process to kernel viv_nan Linux - General 3 03-07-2007 11:09 AM
Calling a system call from a system call? Loc_8 Programming 0 09-16-2006 04:21 PM
How to create a system call in Fedora Core1? soner Linux - General 1 10-27-2004 10:23 PM


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

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