Date: Tue, 26 Apr 2016 20:31:55 -0500 From: Christian Peron <csjp@sqrt.ca> To: dayanidhi sreenivasan <dayanidhi.sreenivasan@gmail.com> Cc: freebsd-arch@freebsd.org Subject: Re: FIONBIO support in freebsd for bpf Message-ID: <20160427013155.GA3880@xor.gateway.mts.net> In-Reply-To: <CADrQwqrpsvG6bdmK=-bmYqFqTUYjby6=xcscc-uFo1_7=tGXNw@mail.gmail.com> References: <CADrQwqrpsvG6bdmK=-bmYqFqTUYjby6=xcscc-uFo1_7=tGXNw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
It is supported. If you want to put the descriptor into non-blocking mode, open it up with
the device with the O_NONBLOCK flag specified. It probably wouldn't be too difficult to implement
this via ioctl(FIONBIO) but I would need to look at it. Not certain why it can't be done using this
method.
Hope this helps.
On Tue, Apr 26, 2016 at 07:22:20PM -0400, dayanidhi sreenivasan wrote:
> Hi Guys,
> Can somebody tell me why there is no support for non blocking IO for bpf yet?
>
> static int
> bpfioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags,
> struct thread *td)
> {
>
> ......
>
> case FIONBIO: /* Non-blocking I/O */
> break;
>
> }
>
> Thanks
> Daya
> _______________________________________________
> freebsd-arch@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arch
> To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iEYEARECAAYFAlcgFosACgkQzHFpVAM/ozzrkACeO/qAWs9MDYW/nzOKDLdfEZuL
LbkAnj/7A/Y2RmCCc20aJBaBycQ5mMwq
=2oqO
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160427013155.GA3880>
