Re: Interface between block/char device and driver handler functions

2016-05-12 Thread Ian Sutton
> So my question is, how do I get a block device in /dev to connect to > my driver open/close/ioctl/etc functions? And secondly, if I want this > to happen automatically a la MAKEDEV, am I supposed to edit the m4 macro > in etc/etc.armv7/MAKEDEV.md or is there a more proper way? I figured out the

Interface between block/char device and driver handler functions

2016-05-11 Thread ian
Hello, I'm writing a device-specific armv7 driver that should put up a block device in /dev. I have bdev_decl() in sys/arch/arm/arm/conf.c as well as an entry in the bdevsw array with corresponding major number (98). The open/close/etc functions bdev_decl() declare are defined in