MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pwd_set

Function pwd_set

freebsd/sys/filedesc.h:345–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343struct pwd *pwd_hold(struct thread *td);
344void pwd_drop(struct pwd *pwd);
345static inline void
346pwd_set(struct pwddesc *pdp, struct pwd *newpwd)
347{
348 smr_serialized_store(&pdp->pd_pwd, newpwd,
349 (PWDDESC_ASSERT_XLOCKED(pdp), true));
350}
351#define pwd_get_smr() vfs_smr_entered_load(&curproc->p_pd->pd_pwd)
352
353#endif /* _KERNEL */

Callers 7

pddropFunction · 0.85
pwd_chrootFunction · 0.85
pwd_chdirFunction · 0.85
pwd_chroot_chdirFunction · 0.85
pwd_ensure_dirsFunction · 0.85
pwd_set_rootvnodeFunction · 0.85
mountcheckdirsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected