Page MenuHomeFreeBSD

fcntl(F_SETFL): only allow one thread to perform F_SETFL
ClosedPublic

Authored by kib on Sep 11 2025, 10:12 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 10:37 PM
Unknown Object (File)
Thu, Oct 9, 10:37 PM
Unknown Object (File)
Thu, Oct 9, 10:37 PM
Unknown Object (File)
Thu, Oct 9, 7:10 PM
Unknown Object (File)
Thu, Oct 9, 6:54 PM
Unknown Object (File)
Thu, Oct 9, 5:54 PM
Unknown Object (File)
Mon, Oct 6, 6:06 PM
Unknown Object (File)
Fri, Oct 3, 11:02 AM
Subscribers

Details

Summary
Use f_vflags file locking for this.
Allowing more than one thread handling F_SETFL might cause de-sync
between real driver state and flags.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable