All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Torri <storri@sbcglobal.net>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Detecting proper device for /dev/dvd
Date: 19 Oct 2002 00:07:03 -0500	[thread overview]
Message-ID: <1035004023.13168.6.camel@base.torri.linux> (raw)

[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]

On my RedHat 8.0 system the DVD/CDRW drive is handle by the ide-scsi
module. So the link /dev/dvd points to /dev/scd0. The interface that
handles /dev/dvd is actual the IDE interface on the motherboard. So
/dev/hdc is the proper link for /dev/dvd. The reason I go into this is
because I am writing a piece of C code that is suppose to detect if DMA
is turned on for the DVD/CDRW drive. This is important for playing DVDs.
What is the best method I should go about doing this?

So far my guesses are

1) Hard code the link (only good for my system so not the ideal
solution). This is only good so far to prove that the DMA detection
works.

2) Use the /proc system to discover the proper /dev link. So far this
has provides confusing since I am not that sure of how to use the
information.

3) Require the user to edit the program's configuration file. Not the
ideal since I would like to make this as easy as possible for
non-technical or novice users of the program.

Ideas, links, documentation and examples are welcome.

Stephen



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

                 reply	other threads:[~2002-10-19  5:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1035004023.13168.6.camel@base.torri.linux \
    --to=storri@sbcglobal.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 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.