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
|