Page MenuHomeFreeBSD

poll: Unify userspace pollfd pointer name
ClosedPublic

Authored by cem on Oct 23 2018, 5:09 PM.
Tags
None
Referenced Files
F101324280: D17670.diff
Sun, Oct 27, 8:02 PM
Unknown Object (File)
Sep 18 2024, 4:32 PM
Unknown Object (File)
Sep 16 2024, 10:08 AM
Unknown Object (File)
Sep 8 2024, 12:35 AM
Unknown Object (File)
Sep 5 2024, 9:46 PM
Unknown Object (File)
Aug 22 2024, 7:44 PM
Unknown Object (File)
Aug 21 2024, 9:29 PM
Unknown Object (File)
Aug 17 2024, 4:00 AM
Subscribers

Details

Summary

Some of the poll code used 'fds' and some used 'ufds' to refer to the
uap->fds userspace pointer that was passed around to subroutines. Some of
the poll code used 'fds' to refer to the kernel memory pollfd arrays, which
seemed unnecessarily confusing.

Unify on 'ufds' to refer to the userspace pollfd array.

Additionally, 'bits' is not an accurate description of the kernel pollfd
array in kern_poll, so rename that to 'kfds'. Finally, clean up some logic
with mallocarray() and nitems().

No functional change.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable