[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: noread(), nopoll().... functions
From:       John-Mark Gurney <gurney_j () efn ! org>
Date:       2004-03-31 17:48:10
Message-ID: 20040331174810.GV567 () funkthat ! com
[Download RAW message or body]

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."
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic