LWP_CACHE_CREDS(9)
π LWP_CACHE_CREDS(9) π
okay so bestie, we're in the Kernel Developer's Manual and this page is literally all about LWP_CACHE_CREDS β the sync-up that keeps an LWP's cached credential matching the process credential. β¨
πΈ NAME πΈ
LWP_CACHE_CREDS β synchronize LWP credential with process credential π«Ά
π SYNOPSIS π
#include <sys/lwp.h>
void
LWP_CACHE_CREDS(lwp_t *l, struct proc *p);
π¦ DESCRIPTION π¦
LWP_CACHE_CREDS() updates the LWP's cached credential so it matches the process' credential if the latter has been changed after the last synchronization. no cap, that's the whole vibe check. π
Every LWP has its own cached credential so that it can be used without worrying about potential of other LWP changing the process' credential. kauth_cred_get() returns the cached credential. π
LWP_CACHE_CREDS() is called by MD entry code for system call and various traps. LWPs which can live in kernel for long period should call LWP_CACHE_CREDS() by itself to refresh its credential. β
LWP_CACHE_CREDS() takes the following arguments.
lβ the calling lwp. πpβ the process which the lwplbelongs to. π«Ά
lowkey important: LWP_CACHE_CREDS() might be implemented as a macro. so don't be shocked if it's giving macro energy. π
π SEE ALSO π
that's the whole page, bestie β brought to you by Debian, dated December 9, 2007. periodt. πβ¨
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c)2007 YAMAMOTO Takashi
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms