noread(), nopoll().... functions

John-Mark Gurney gurney_j at efn.org
Wed Mar 31 09:48:13 PST 2004


Claudio Martella wrote this message on Tue, Mar 16, 2004 at 01:00 +0100:
> Hi, i'm writing a driver, and noticed the noread() nopoll() etc
> general-use functions for struct cdevsw are no longer present in 5.x. What
> can i use in 5.x?

In 5.x we now use C99 sparse struct initalization for this.  You can
just not include them in your definition, and you'll get the defaults
for this..  check prep_cdevsw in kern_conf.c for how this is done...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the freebsd-hackers mailing list