tech-kern archive

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

Re: Finding the slot in the ioconf table a module attaches to?



On Wed, 1 Feb 2023, Brian Buhrow wrote:

	hello.  Following up on my own post, I found the mechanism by which the cdevsw structure
gets tied to the ioconf table in NetBSD-5.  It's done with:


MOD_DEV("zaptel", "zaptel", NULL, -1, &zaptel_cdevsw, ZT_MAJOR)

This macro has been removed from the new module framework.  Can someone point me in the correct
direction as to where to look for the replacement function for this macro with the new module
framework?


These should help you:

/usr/src/sys/modules/examples/readhappy/readhappy.c
/usr/src/sys/conf/majors*

-RVP



Home | Main Index | Thread Index | Old Index