Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 2004 09:48:10 -0800
From:      John-Mark Gurney <gurney_j@efn.org>
To:        Claudio Martella <claudio.martella@ikon-corp.it>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: noread(), nopoll().... functions
Message-ID:  <20040331174810.GV567@funkthat.com>
In-Reply-To: <49522.62.101.126.224.1079395238.squirrel@webmail.ikon-corp.it>
References:  <49522.62.101.126.224.1079395238.squirrel@webmail.ikon-corp.it>

next in thread | previous in thread | raw e-mail | index | archive | help
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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040331174810.GV567>