Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/devfs/devfs.h
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | #define DE_USER 0x20 | ||||
uid_t de_uid; | uid_t de_uid; | ||||
gid_t de_gid; | gid_t de_gid; | ||||
struct label *de_label; | struct label *de_label; | ||||
struct timespec de_atime; | struct timespec de_atime; | ||||
struct timespec de_mtime; | struct timespec de_mtime; | ||||
struct timespec de_ctime; | struct timespec de_ctime; | ||||
struct vnode *de_vnode; | struct vnode *de_vnode; | ||||
char *de_symlink; | char *de_symlink; | ||||
/* | |||||
kib: Explain in the comment why new flags fleld is added.
And actually what protects de_flags2 ? | |||||
* Flags protected by interlock of the associated vnode. | |||||
kibUnsubmitted Not Done Inline ActionsBy 'associated' you mean de_vnode, right ? Why not say it directly ? kib: By 'associated' you mean de_vnode, right ? Why not say it directly ? | |||||
* Only use it if you can't match locking requirements for de_flags. | |||||
*/ | |||||
int de_flags2; | |||||
#define DE2_OPENED 0x01 | |||||
}; | }; | ||||
struct devfs_mount { | struct devfs_mount { | ||||
u_int dm_idx; | u_int dm_idx; | ||||
struct mount *dm_mount; | struct mount *dm_mount; | ||||
struct devfs_dirent *dm_rootdir; | struct devfs_dirent *dm_rootdir; | ||||
unsigned dm_generation; | unsigned dm_generation; | ||||
int dm_holdcnt; | int dm_holdcnt; | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |
Explain in the comment why new flags fleld is added.
And actually what protects de_flags2 ? The vnode lock of de_vnode ?