[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[altq 562] Re: qop_add_filter() in qop.c




Hao Zhang wrote:
> Where can I find the defination of ioctl in user space code? 

It's a bit tricky to understand how system calls are translated within 
libc.  If you take a closer look at lib/libc/sys/Makefile.inc, you
might notice
 - machine-independent syscall entries are defined in sys/sys/syscall.mk
 - syscall numbers are defined in sys/sys/syscall.h
 - each entry is translated to a trap instruction in assembler
   by SYSCALL(x) macro in lib/libc/i386/SYS.h

But 99.9% of UNIX programmers don't need to know these details.
All you need to know is that the userland code and the kernel code are 
different :)

-Kenjiro