HomeFreeBSD

Generalised support for copy-on-write structures shared by threads.

Description

Generalised support for copy-on-write structures shared by threads.

Thread credentials are maintained as follows: each thread has a pointer to
creds and a reference on them. The pointer is compared with proc's creds on
userspace<->kernel boundary and updated if needed.

This patch introduces a counter which can be compared instead, so that more
structures can use this scheme without adding more comparisons on the boundary.

Details

Provenance
mjgAuthored on
Parents
rS284213: Don't re-define LOCORE when dtrace is built-in to the kernel.
Branches
Unknown
Tags
Unknown