lkml.org 
[lkml]   [2004]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sys_sem* undefined
On Thu, 26 Aug 2004 14:44:03 +0100 (BST) Arne Henrichsen wrote:

| Hi,
|
| I realise now that one obviously calls these functions
| via system calls. Ok, I have never done that before in
| Linux. This is probably not the correct group to ask
| this, but where is there a good place to start? Maybe
| with a simple example on how to do system calls in
| Linux?

From an application (userspace) or from inside the kernel?

There are many "howto add a system call to Linux" web pages
out there (use google). Oh, you want "howto do a system call."

From userspace, usually use a library: app calls library
function, which does the syscall. Or you can roll your
own syscalls. The howtos on adding a system call to Linux
usually show you how to do that part also.[1]

--
~Randy

[1] written for 2.4.18:
http://www.xenotime.net/linux/syscall_ex/howto_adda_syscall.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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