Page MenuHomeFreeBSD

poll: Unify userspace pollfd pointer name
ClosedPublic

Authored by cem on Oct 23 2018, 5:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 17, 4:00 AM
Unknown Object (File)
Sun, Aug 11, 5:44 AM
Unknown Object (File)
Mon, Aug 5, 7:26 AM
Unknown Object (File)
Jul 21 2024, 10:27 AM
Unknown Object (File)
Jul 17 2024, 6:02 AM
Unknown Object (File)
Jul 9 2024, 8:25 PM
Unknown Object (File)
Jul 9 2024, 7:54 AM
Unknown Object (File)
Jul 8 2024, 4:13 PM
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