disk_create and cdevsw_add
Brian Fundakowski Feldman
green at freebsd.org
Wed Sep 1 10:02:00 PDT 2004
On Wed, Sep 01, 2004 at 12:32:58PM -0500, Sam wrote:
> 'lo again,
>
> kern/subr_disk.c:/^disk_create/ takes
> two cdevsw types, and I only vaguely
> understand why. Can someone explain it to me?
>
> I'm generally confused about resolving
> entry points into the driver. Does a
> block device only get an open() after
> registering it with disk_create?
> Supposing I want to set some ioctls for
> an aoecontrol utility (show all devices
> known, eg), what would aoecontrol open
> to ioctl?
Create /dev/aoectl which exists only to do global aoe things; alternately,
you could use a sysctl interface, but that's not really as clean.
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green at FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
More information about the freebsd-arch
mailing list