mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Helge Hafting <helgehaf@idb.hist.no>
To: Jeff Meininger <jeffm@boxybutgood.com>, linux-kernel@vger.kernel.org
Subject: Re: 'detect' floppy hardware from userland?  ioctl?
Date: Mon, 20 Aug 2001 09:18:40 +0200	[thread overview]
Message-ID: <3B80B9D0.139E4567@idb.hist.no> (raw)
In-Reply-To: <Pine.LNX.4.33.0108171628470.550-100000@mangonel.localdomain>

Jeff Meininger wrote:
> 
> I'm writing an app that needs to know what floppy drives are connected to
> the system.  Right now, I'm parsing the output of 'dmesg', but 'dmesg' can
> fill up so that the part where floppy drives are listed is no longer
> available.  Is there an ioctl or some other interface for discovering fd0,
> fd1, etc?
>

You have got some replies already.  Another way of detection is
to run devfs, you may do a "ls /dev/floppy" and get
0, 1, 2, ...
devfs report exactly the devices you have, not the devices
you _may_ have.  Note that you don't have to convert
your system to use devfs if you don't want to - you can
mount devfs some other place than /dev if all you want
is detection.

Helge Hafting

      parent reply	other threads:[~2001-08-20  7:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-17 21:31 Jeff Meininger
2001-08-17 21:33 ` Justin A
2001-08-17 21:39   ` Jeff Meininger
2001-08-18 17:35     ` Dominik Kubla
2001-08-20  7:18 ` Helge Hafting [this message]

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=3B80B9D0.139E4567@idb.hist.no \
    --to=helgehaf@idb.hist.no \
    --cc=jeffm@boxybutgood.com \
    --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®