using syscalls in 2.6

Submitted by vertigo
on October 17, 2004 - 12:43am

Hello
How can i use system calls in my module ?
Do i need any headers file ?
When i try to use for example write() or sys_write()
durring compilation i receive error that these symbols are not defined.
My problem is that i'm using 2.6 kernel and i do not have
/proc/ksyms. So where can i find which symbols are exported by my kernel ?

By the way: Where in linux source code is open() system call ?

Thanx
Michal

sound_firmware.c

Anonymous
on
October 17, 2004 - 2:04am

well, look into {LINUX-SOURCE}/sound/sound_firmware.c there's an example...

BTW, please don't use any syscalls in your kernel modules.
(a really good syscall table: http://www.lxhp.in-berlin.de/lhpsyscal.html)

Thanx, it helped a lot :))

vertigo
on
October 17, 2004 - 11:12am

Thanx, it helped a lot :))

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.