HomeFreeBSD

ng_device: enable setting the device to non-blocking mode

Description

ng_device: enable setting the device to non-blocking mode

Return success when FIONBIO or FIOASYNC ioctl are received in order to support
being set to non-blocking through fcntl(2). We return an error on FIOASYNC with
non-zero data argument since we do not support O_ASYNC.

Signed-off-by: Quentin Thébault <quentin.thebault@defenso.fr>
Reviewed by: imp, jhb
Pull Request: https://github.com/freebsd/freebsd-src/pull/1827

Details

Provenance
quentin.thebault_defenso.frAuthored on Aug 28 2025, 8:19 AM
impCommitted on Sep 12 2025, 4:24 PM
Parents
rG593d432e5852: ng_device: replace dependency on vnode.h with fcntl.h
Branches
Unknown
Tags
Unknown