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)
Sun, Sep 8, 12:35 AM
Unknown Object (File)
Thu, Sep 5, 9:46 PM
Unknown Object (File)
Thu, Aug 22, 7:44 PM
Unknown Object (File)
Wed, Aug 21, 9:29 PM
Unknown Object (File)
Sat, Aug 17, 4:00 AM
Unknown Object (File)
Aug 11 2024, 5:44 AM
Unknown Object (File)
Aug 5 2024, 7:26 AM
Unknown Object (File)
Jul 21 2024, 10:27 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20362
Build 19803: arc lint + arc unit