* List of Optical devices.
@ 2006-06-11 17:13 Tom Gaudasinski
2006-06-11 8:58 ` Bernd Eckenfels
0 siblings, 1 reply; 2+ messages in thread
From: Tom Gaudasinski @ 2006-06-11 17:13 UTC (permalink / raw)
To: linux-kernel
Greetings,
I would like to get a list of all the optical drives registered. I
see that in <linux/cdrom.h> there is a register_cdrom() function, and an
unregister variant. Nowhere do i see however a way to get a list of
these devices. I understand that they form a linked list, so getting the
first one would be peachy enough, yet again I can't find such
functionality. Currently what I'm doing is parsing the text out of
/proc/sys/dev/cdrom/info, which is cumbersome. However due to the fact
that a file in proc can produce this, i assume there's a way to get that
list. How may I do so? All i need are the device names so that I may
send some ioctls to them.
Thank you.
P.S.
I am not subscribed to the mailing list, please CC me a copy of any replies.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-11 8:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-11 17:13 List of Optical devices Tom Gaudasinski
2006-06-11 8:58 ` Bernd Eckenfels
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.