Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/filedesc.h
Show First 20 Lines • Show All 302 Lines • ▼ Show 20 Lines | |||||
void pwd_drop(struct pwd *pwd); | void pwd_drop(struct pwd *pwd); | ||||
static inline void | static inline void | ||||
pwd_set(struct filedesc *fdp, struct pwd *newpwd) | pwd_set(struct filedesc *fdp, struct pwd *newpwd) | ||||
{ | { | ||||
smr_serialized_store(&fdp->fd_pwd, newpwd, | smr_serialized_store(&fdp->fd_pwd, newpwd, | ||||
(FILEDESC_XLOCK_ASSERT(fdp), true)); | (FILEDESC_XLOCK_ASSERT(fdp), true)); | ||||
} | } | ||||
struct pwd *pwd_get_smr(void); | |||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* !_SYS_FILEDESC_H_ */ | #endif /* !_SYS_FILEDESC_H_ */ |