tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

maj, min from device name


   How does one convert a device string (for instance "cgd0a", "cgd1d")
to/from a dev_t?

   For wd*, finddevice() (found in sys/kern/kern_subr.c) can be used --
but it appears that cgd* aren't listed in alldevs, so it returns NULL.

Kind regards,
Jan Danielsson

Attachment: signature.asc
Description: OpenPGP digital signature

Home | Main Index | Thread Index | Old Index