From: Tom Gaudasinski <cetus@internode.on.net>
To: linux-kernel@vger.kernel.org
Subject: List of Optical devices.
Date: Sun, 11 Jun 2006 17:13:28 +0000 [thread overview]
Message-ID: <448C4F38.8030807@internode.on.net> (raw)
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.
next reply other threads:[~2006-06-11 7:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-11 17:13 Tom Gaudasinski [this message]
2006-06-11 8:58 ` Bernd Eckenfels
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=448C4F38.8030807@internode.on.net \
--to=cetus@internode.on.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®