LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-10-2005, 06:36 PM   #1
quicktime2004
LQ Newbie
 
Registered: Jul 2005
Posts: 4

Rep: Reputation: 0
How to understand the following codes for CDROM drivers?


Here is one segment code for Linux drivers.
I know it is used to control CD-ROM to play music.
However, I don't understand it completely casue
I seldom touch the interface between software and
hardware.
The codes are:
2532 case CDROMPLAYMSF: {
2533 struct cdrom_msf msf;
2534 if (!CDROM_CAN(CDC_PLAY_AUDIO))
2535 return -ENOSYS;
2536 cdinfo(CD_DO_IOCTL, "entering CDROMPLAYMSF\n");
2537 IOCTL_IN(arg, struct cdrom_msf, msf);
2538 return cdo->audio_ioctl(cdi, cmd, &msf);
2539 }

My problem is :
1) It this the lowest code to interact with hardware?
2) Is this the final realization of system call ioctl?
3) What's the concrete cdo->audio_ioctl? I am not sure which function
it is in kernel.


Thanks a lot.
I am really new to this.


---cdyang
 
  


Reply



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
Are the hex codes for colors in a jpg the same codes as used in html? abefroman Linux - Security 3 07-31-2005 03:21 PM
FreeDOS cdrom drivers Craigwd General 2 08-02-2004 12:16 AM
Tools to help read/understand perl codes?? friendklay Programming 0 04-21-2004 03:56 PM
Installing cdrom drivers calimer Linux - Hardware 6 05-03-2002 09:47 AM
install drivers for cdrom Terrapin Linux - Software 1 09-21-2001 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:49 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
Open Source Consulting | Domain Registration