HomeFreeBSD

thread: Add a return value to cpu_set_upcall()

Description

thread: Add a return value to cpu_set_upcall()

Some implementations copy data to userspace, an operation which can in
principle fail. In preparation for adding a __result_use_check
annotation to copyin() and related functions, let implementations of
cpu_set_upcall() return an error, and check for errors when copying data
to user memory.

Reviewed by: kib, jhb
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43100

Details

Provenance
markjAuthored on Dec 26 2023, 1:39 AM
Reviewer
kib
Differential Revision
D43100: thread: Add a return value to cpu_set_upcall()
Parents
rG4f35450ce52a: compat_freebsd4: Check for errors from subyte() in freebsd4_uname()
Branches
Unknown
Tags
Unknown