'detect' floppy hardware from userland? ioctl?

Jeff Meininger (jeffm@boxybutgood.com)
Fri, 17 Aug 2001 16:31:27 -0500 (CDT)


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?

Thanks.
BTW, I'm not a list member, please Cc: my address!
-Jeff M

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/