Hi:
Now I did not want to use System Call to call some function. How could I
do?
In user space, I use open to open cdrom.
cd_desc = open(device_name, O_RDONLY | O_NONBLOCK)) < 0
Now I don't want used the following system call ioctl:
/* Read the Table Of Contents header */
if(ioctl(cd_desc, CDAUDIO_READTOCHEADER, &cdth) < 0)
return -1;
I want to use a mbuff between user space and kernel space , and in
kernel space, I call cdo->audio_ioctl directly myself. But I am not so clear
how Linux
transfer ioctl to audio_ioctl? Because they change file descriptor cd_desc
to struct cdrom_device_info *cdi?
Who could help me understand this? Is my idea possible ?Any advice is
welcome?
--cundong
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/