LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-08-2005, 01:05 AM   #1
macarthor
Member
 
Registered: Jun 2004
Posts: 37

Rep: Reputation: 15
block_device_operations VS. cdrom_device_ops


Hi there,

I'm writing a CDROM driver, and encountered with "struct block_device_operations" and "struct cdrom_device_ops", both of which provide functions such as open, release, media_changed, ioctl.

What are the DIFFERENCE and RELATIONSHIP between them?

When to use which?

When I commit ioctl() in user-space programm, which ioctl is used?

thx
 
  


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



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:13 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