lib/libc/iconv/citrus_db_factory.c
114
struct _citrus_db_factory_entry *de;
lib/libc/iconv/citrus_db_factory.c
116
de = malloc(sizeof(*de));
lib/libc/iconv/citrus_db_factory.c
117
if (de == NULL)
lib/libc/iconv/citrus_db_factory.c
120
de->de_hashvalue = df->df_hashfunc(key);
lib/libc/iconv/citrus_db_factory.c
121
de->de_key = *key;
lib/libc/iconv/citrus_db_factory.c
122
de->de_key_free = keyfree;
lib/libc/iconv/citrus_db_factory.c
123
de->de_data = *data;
lib/libc/iconv/citrus_db_factory.c
124
de->de_data_free = datafree;
lib/libc/iconv/citrus_db_factory.c
125
de->de_idx = -1;
lib/libc/iconv/citrus_db_factory.c
127
STAILQ_INSERT_TAIL(&df->df_entries, de, de_entry);
lib/libc/iconv/citrus_db_factory.c
263
struct _citrus_db_factory_entry *de, **depp, *det;
lib/libc/iconv/citrus_db_factory.c
278
STAILQ_FOREACH(de, &df->df_entries, de_entry) {
lib/libc/iconv/citrus_db_factory.c
279
de->de_hashvalue %= df->df_num_entries;
lib/libc/iconv/citrus_db_factory.c
280
de->de_idx = -1;
lib/libc/iconv/citrus_db_factory.c
281
de->de_next = NULL;
lib/libc/iconv/citrus_db_factory.c
282
if (depp[de->de_hashvalue] == NULL) {
lib/libc/iconv/citrus_db_factory.c
283
depp[de->de_hashvalue] = de;
lib/libc/iconv/citrus_db_factory.c
284
de->de_idx = (int)de->de_hashvalue;
lib/libc/iconv/citrus_db_factory.c
290
STAILQ_FOREACH(de, &df->df_entries, de_entry) {
lib/libc/iconv/citrus_db_factory.c
291
if (de->de_idx == -1) {
lib/libc/iconv/citrus_db_factory.c
292
det = depp[de->de_hashvalue];
lib/libc/iconv/citrus_db_factory.c
295
det->de_next = de;
lib/libc/iconv/citrus_db_factory.c
298
depp[i] = de;
lib/libc/iconv/citrus_db_factory.c
299
de->de_idx = (int)i;
lib/libc/iconv/citrus_db_factory.c
312
de = depp[i];
lib/libc/iconv/citrus_db_factory.c
314
if (de->de_next) {
lib/libc/iconv/citrus_db_factory.c
316
de->de_next->de_idx * _CITRUS_DB_ENTRY_SIZE;
lib/libc/iconv/citrus_db_factory.c
318
put32(r, &ofs, de->de_hashvalue);
lib/libc/iconv/citrus_db_factory.c
321
put32(r, &ofs, _region_size(&de->de_key));
lib/libc/iconv/citrus_db_factory.c
323
put32(r, &ofs, _region_size(&de->de_data));
lib/libc/iconv/citrus_db_factory.c
325
_region_head(&de->de_key), _region_size(&de->de_key));
lib/libc/iconv/citrus_db_factory.c
326
keyofs += _region_size(&de->de_key);
lib/libc/iconv/citrus_db_factory.c
328
_region_head(&de->de_data), _region_size(&de->de_data));
lib/libc/iconv/citrus_db_factory.c
329
dataofs += _region_size(&de->de_data);
lib/libc/iconv/citrus_db_factory.c
91
struct _citrus_db_factory_entry *de;
lib/libc/iconv/citrus_db_factory.c
93
while ((de = STAILQ_FIRST(&df->df_entries)) != NULL) {
lib/libc/iconv/citrus_db_factory.c
95
if (de->de_key_free)
lib/libc/iconv/citrus_db_factory.c
96
free(_region_head(&de->de_key));
lib/libc/iconv/citrus_db_factory.c
97
if (de->de_data_free)
lib/libc/iconv/citrus_db_factory.c
98
free(_region_head(&de->de_data));
lib/libc/iconv/citrus_db_factory.c
99
free(de);
lib/libc/tests/gen/dir2_test.c
130
struct dirent *de;
lib/libc/tests/gen/dir2_test.c
164
de = readdir(dirp);
lib/libc/tests/gen/dir2_test.c
165
ATF_REQUIRE_MSG(de != NULL, "readdir failed");
lib/libc/tests/gen/dir2_test.c
166
strlcpy(last_filename, de->d_name, sizeof(last_filename));
lib/libc/tests/gen/dir2_test.c
170
de = readdir(dirp);
lib/libc/tests/gen/dir2_test.c
171
ATF_REQUIRE_STREQ_MSG(last_filename, de->d_name,
lib/libc/tests/gen/dir2_test.c
54
struct dirent *de;
lib/libc/tests/gen/dir2_test.c
82
de = readdir(dirp);
lib/libc/tests/gen/dir2_test.c
83
ATF_REQUIRE_MSG(de != NULL, "readdir failed");
lib/libc/tests/gen/dir2_test.c
87
de = readdir(dirp);
lib/libc/tests/gen/dir2_test.c
88
ATF_REQUIRE_MSG(de != NULL, "readdir failed");
lib/libfetch/file.c
122
struct dirent *de;
lib/libfetch/file.c
142
while ((de = readdir(dir)) != NULL) {
lib/libfetch/file.c
143
strncpy(p, de->d_name, l - 1);
lib/libfetch/file.c
148
fetch_add_entry(&ue, &size, &len, de->d_name, &us);
lib/libsecureboot/veta.c
75
struct dirent *de;
lib/libsecureboot/veta.c
82
for (num = 0, de = readdir(dh); de; de = readdir(dh)) {
lib/libsecureboot/veta.c
83
if (de->d_name[0] == '.')
lib/libsecureboot/veta.c
85
sz = snprintf(fbuf, sizeof(fbuf), "%s/%s", trust, de->d_name);
sbin/fsck_msdosfs/dir.c
111
struct dosDirEntry *de;
sbin/fsck_msdosfs/dir.c
113
if (!(de = freede)) {
sbin/fsck_msdosfs/dir.c
114
if (!(de = malloc(sizeof *de)))
sbin/fsck_msdosfs/dir.c
117
freede = de->next;
sbin/fsck_msdosfs/dir.c
118
return de;
sbin/fsck_msdosfs/dir.c
122
freeDosDirEntry(struct dosDirEntry *de)
sbin/fsck_msdosfs/dir.c
124
de->next = freede;
sbin/fsck_msdosfs/dir.c
125
freede = de;
sbin/newfs_msdos/mkfs_msdos.c
247
struct de *de;
sbin/newfs_msdos/mkfs_msdos.c
419
bpb.bpbBytesPerSec / sizeof(struct de));
sbin/newfs_msdos/mkfs_msdos.c
466
bpb.bpbBytesPerSec / sizeof(struct de)) +
sbin/newfs_msdos/mkfs_msdos.c
475
howmany(DEFRDE, bpb.bpbBytesPerSec / sizeof(struct de)) +
sbin/newfs_msdos/mkfs_msdos.c
537
bpb.bpbBytesPerSec / sizeof(struct de));
sbin/newfs_msdos/mkfs_msdos.c
755
de = (struct de *)img;
sbin/newfs_msdos/mkfs_msdos.c
756
mklabel(de->deName, o.volume_label);
sbin/newfs_msdos/mkfs_msdos.c
757
mk1(de->deAttributes, 050);
sbin/newfs_msdos/mkfs_msdos.c
761
mk2(de->deMTime, x);
sbin/newfs_msdos/mkfs_msdos.c
765
mk2(de->deMDate, x);
stand/libsa/dosfs.c
172
#define stclus(sz, de) ((sz) != 32 ? (u_int)cv2((de)->clus) : \
stand/libsa/dosfs.c
173
((u_int)cv2((de)->dex.h_clus) << 16) | \
stand/libsa/dosfs.c
174
cv2((de)->clus))
stand/libsa/dosfs.c
347
DOS_DE *de;
stand/libsa/dosfs.c
373
if ((err = namede(fs, path, &de))) {
stand/libsa/dosfs.c
379
clus = stclus(fs->fatsz, de);
stand/libsa/dosfs.c
380
size = cv4(de->size);
stand/libsa/dosfs.c
382
if ((!(de->attr & FA_DIR) && (!clus != !size)) ||
stand/libsa/dosfs.c
383
((de->attr & FA_DIR) && size) ||
stand/libsa/dosfs.c
397
f->de = *de;
stand/libsa/dosfs.c
423
if ((size = fsize(f->fs, &f->de)) == -1)
stand/libsa/dosfs.c
428
if ((clus = stclus(f->fs->fatsz, &f->de)))
stand/libsa/dosfs.c
478
size = cv4(f->de.size);
stand/libsa/dosfs.c
527
sb->st_mode = f->de.attr & FA_DIR ? S_IFDIR | 0555 : S_IFREG | 0444;
stand/libsa/dosfs.c
531
if ((sb->st_size = fsize(f->fs, &f->de)) == -1)
stand/libsa/dosfs.c
572
if (dd.de.name[0] == 0)
stand/libsa/dosfs.c
576
if (dd.de.name[0] == 0xe5)
stand/libsa/dosfs.c
580
if (dd.de.attr & FA_LABEL) {
stand/libsa/dosfs.c
585
if ((dd.de.attr & FA_MASK) == FA_XDE) {
stand/libsa/dosfs.c
608
x = dos_checksum(dd.de.name, dd.de.ext);
stand/libsa/dosfs.c
612
cp_sfn(fn, &dd.de);
stand/libsa/dosfs.c
619
d->d_fileno = (dd.de.clus[1] << 8) + dd.de.clus[0];
stand/libsa/dosfs.c
621
d->d_type = (dd.de.attr & FA_DIR) ? DT_DIR : DT_REG;
stand/libsa/dosfs.c
700
DOS_DE *de;
stand/libsa/dosfs.c
706
de = &fs->root;
stand/libsa/dosfs.c
719
if (!(de->attr & FA_DIR))
stand/libsa/dosfs.c
721
if ((err = lookup(fs, stclus(fs->fatsz, de), name, &de)))
stand/libsa/dosfs.c
724
*dep = de;
stand/libsa/dosfs.c
764
if (!*dir[ent].de.name)
stand/libsa/dosfs.c
766
if (*dir[ent].de.name != 0xe5) {
stand/libsa/dosfs.c
767
if ((dir[ent].de.attr & FA_MASK) ==
stand/libsa/dosfs.c
782
} else if (!(dir[ent].de.attr &
stand/libsa/dosfs.c
786
dir[ent].de.name,
stand/libsa/dosfs.c
787
dir[ent].de.ext);
stand/libsa/dosfs.c
794
&dir[ent].de);
stand/libsa/dosfs.c
799
*dep = &dir[ent].de;
stand/libsa/dosfs.c
851
cp_sfn(u_char *sfn, DOS_DE *de)
stand/libsa/dosfs.c
857
if (*de->name != ' ') {
stand/libsa/dosfs.c
858
for (j = 7; de->name[j] == ' '; j--)
stand/libsa/dosfs.c
861
*p++ = de->name[i];
stand/libsa/dosfs.c
862
if (*de->ext != ' ') {
stand/libsa/dosfs.c
864
for (j = 2; de->ext[j] == ' '; j--)
stand/libsa/dosfs.c
867
*p++ = de->ext[i];
stand/libsa/dosfs.c
879
fsize(DOS_FS *fs, DOS_DE *de)
stand/libsa/dosfs.c
885
if (!(size = cv4(de->size)) && de->attr & FA_DIR) {
stand/libsa/dosfs.c
886
if (!(c = stclus(fs->fatsz, de))) {
stand/libsa/dosfs.h
119
DOS_DE de; /* directory entry */
stand/libsa/dosfs.h
91
DOS_DE de; /* standard directory entry */
sys/amd64/vmm/amd/ivrs_drv.c
210
ACPI_IVRS_DE_HEADER *de;
sys/amd64/vmm/amd/ivrs_drv.c
236
de = (ACPI_IVRS_DE_HEADER *)p;
sys/amd64/vmm/amd/ivrs_drv.c
237
switch (de->Type) {
sys/amd64/vmm/amd/ivrs_drv.c
239
all_data = de->DataSetting;
sys/amd64/vmm/amd/ivrs_drv.c
248
if (de->Type == ACPI_IVRS_TYPE_EXT_SELECT) {
sys/amd64/vmm/amd/ivrs_drv.c
249
extended = (uint32_t *)(de + 1);
sys/amd64/vmm/amd/ivrs_drv.c
254
ivhd_dev_add_entry(softc, de->Id, de->Id,
sys/amd64/vmm/amd/ivrs_drv.c
255
de->DataSetting | all_data, enable_ats);
sys/amd64/vmm/amd/ivrs_drv.c
266
range_start_id = de->Id;
sys/amd64/vmm/amd/ivrs_drv.c
267
range_data = de->DataSetting;
sys/amd64/vmm/amd/ivrs_drv.c
268
if (de->Type == ACPI_IVRS_TYPE_EXT_START) {
sys/amd64/vmm/amd/ivrs_drv.c
269
extended = (uint32_t *)(de + 1);
sys/amd64/vmm/amd/ivrs_drv.c
282
range_end_id = de->Id;
sys/amd64/vmm/amd/ivrs_drv.c
302
if ((de->Type < 5) ||
sys/amd64/vmm/amd/ivrs_drv.c
303
(de->Type >= ACPI_IVRS_TYPE_PAD8))
sys/amd64/vmm/amd/ivrs_drv.c
305
"Unknown dev entry:0x%x\n", de->Type);
sys/amd64/vmm/amd/ivrs_drv.c
308
if (de->Type < 0x40)
sys/amd64/vmm/amd/ivrs_drv.c
310
else if (de->Type < 0x80)
sys/amd64/vmm/amd/ivrs_drv.c
314
de->Type);
sys/cddl/boot/zfs/zfsimpl.h
1842
#define ZFS_DIRENT_TYPE(de) BF64_GET(de, 60, 4)
sys/cddl/boot/zfs/zfsimpl.h
1843
#define ZFS_DIRENT_OBJ(de) BF64_GET(de, 0, 48)
sys/compat/linux/linux_util.c
138
struct device_element *de;
sys/compat/linux/linux_util.c
143
TAILQ_FOREACH(de, &devices, list) {
sys/compat/linux/linux_util.c
144
if (strcmp(device_name, de->entry.bsd_driver_name) == 0)
sys/compat/linux/linux_util.c
145
return (de->entry.linux_driver_name);
sys/compat/linux/linux_util.c
154
struct device_element *de;
sys/compat/linux/linux_util.c
203
TAILQ_FOREACH(de, &devices, list) {
sys/compat/linux/linux_util.c
204
if (strcmp(node, de->entry.bsd_device_name) == 0) {
sys/compat/linux/linux_util.c
205
*major = de->entry.linux_major;
sys/compat/linux/linux_util.c
206
*minor = de->entry.linux_minor;
sys/compat/linux/linux_util.c
260
struct device_element *de;
sys/compat/linux/linux_util.c
268
TAILQ_FOREACH(de, &devices, list) {
sys/compat/linux/linux_util.c
269
if (!de->entry.linux_char_device)
sys/compat/linux/linux_util.c
272
if (strcmp(last, de->entry.bsd_driver_name) != 0) {
sys/compat/linux/linux_util.c
273
last = de->entry.bsd_driver_name;
sys/compat/linux/linux_util.c
276
de->entry.linux_major,
sys/compat/linux/linux_util.c
277
de->entry.linux_device_name);
sys/compat/linux/linux_util.c
306
struct device_element *de;
sys/compat/linux/linux_util.c
311
de = malloc(sizeof(*de), M_LINUX, M_WAITOK);
sys/compat/linux/linux_util.c
315
bcopy(d, &de->entry, sizeof(*d));
sys/compat/linux/linux_util.c
318
TAILQ_INSERT_TAIL(&devices, de, list);
sys/compat/linux/linux_util.c
326
struct device_element *de;
sys/compat/linux/linux_util.c
331
TAILQ_FOREACH(de, &devices, list) {
sys/compat/linux/linux_util.c
332
if (bcmp(d, &de->entry, sizeof(*d)) == 0) {
sys/compat/linux/linux_util.c
333
TAILQ_REMOVE(&devices, de, list);
sys/compat/linux/linux_util.c
334
free(de, M_LINUX);
sys/dev/dpaa2/dpaa2_swp.c
329
uint8_t dcm, uint8_t epm, int sd, int sp, int se, int dp, int de, int ep)
sys/dev/dpaa2/dpaa2_swp.c
342
de << DPAA2_SWP_CFG_DE_SHIFT |
sys/dev/dpaa2/dpaa2_swp.h
449
int de, int ep);
sys/dev/hdmi/dwc_hdmi.c
606
uint8_t de, val;
sys/dev/hdmi/dwc_hdmi.c
608
de = HDMI_A_VIDPOLCFG_DATAENPOL_ACTIVE_HIGH;
sys/dev/hdmi/dwc_hdmi.c
619
val |= de;
sys/fs/devfs/devfs.h
178
#define DEVFS_DE_HOLD(de) ((de)->de_holdcnt++)
sys/fs/devfs/devfs.h
179
#define DEVFS_DE_DROP(de) (--(de)->de_holdcnt == 0)
sys/fs/devfs/devfs_devs.c
193
struct devfs_dirent *de;
sys/fs/devfs/devfs_devs.c
195
TAILQ_FOREACH(de, &dd->de_dlist, de_list) {
sys/fs/devfs/devfs_devs.c
196
if (namelen != de->de_dirent->d_namlen)
sys/fs/devfs/devfs_devs.c
198
if (type != 0 && type != de->de_dirent->d_type)
sys/fs/devfs/devfs_devs.c
206
if (de->de_dirent->d_type == DT_CHR &&
sys/fs/devfs/devfs_devs.c
207
(de->de_cdp->cdp_flags & CDP_ACTIVE) == 0)
sys/fs/devfs/devfs_devs.c
210
if (bcmp(name, de->de_dirent->d_name, namelen) != 0)
sys/fs/devfs/devfs_devs.c
214
KASSERT(de == NULL || (de->de_flags & DE_DOOMED) == 0,
sys/fs/devfs/devfs_devs.c
216
return (de);
sys/fs/devfs/devfs_devs.c
223
struct devfs_dirent *de;
sys/fs/devfs/devfs_devs.c
227
i = sizeof(*de) + GENERIC_DIRSIZ(&d);
sys/fs/devfs/devfs_devs.c
228
de = malloc(i, M_DEVFS3, M_WAITOK | M_ZERO);
sys/fs/devfs/devfs_devs.c
229
de->de_dirent = (struct dirent *)(de + 1);
sys/fs/devfs/devfs_devs.c
230
de->de_dirent->d_namlen = namelen;
sys/fs/devfs/devfs_devs.c
231
de->de_dirent->d_reclen = GENERIC_DIRSIZ(&d);
sys/fs/devfs/devfs_devs.c
232
bcopy(name, de->de_dirent->d_name, namelen);
sys/fs/devfs/devfs_devs.c
233
dirent_terminate(de->de_dirent);
sys/fs/devfs/devfs_devs.c
234
vfs_timestamp(&de->de_ctime);
sys/fs/devfs/devfs_devs.c
235
de->de_mtime = de->de_atime = de->de_ctime;
sys/fs/devfs/devfs_devs.c
236
de->de_links = 1;
sys/fs/devfs/devfs_devs.c
237
de->de_holdcnt = 1;
sys/fs/devfs/devfs_devs.c
239
mac_devfs_init(de);
sys/fs/devfs/devfs_devs.c
241
return (de);
sys/fs/devfs/devfs_devs.c
245
devfs_parent_dirent(struct devfs_dirent *de)
sys/fs/devfs/devfs_devs.c
248
if (de->de_dirent->d_type != DT_DIR)
sys/fs/devfs/devfs_devs.c
249
return (de->de_dir);
sys/fs/devfs/devfs_devs.c
251
if (de->de_flags & (DE_DOT | DE_DOTDOT))
sys/fs/devfs/devfs_devs.c
254
de = TAILQ_FIRST(&de->de_dlist); /* "." */
sys/fs/devfs/devfs_devs.c
255
if (de == NULL)
sys/fs/devfs/devfs_devs.c
257
de = TAILQ_NEXT(de, de_list); /* ".." */
sys/fs/devfs/devfs_devs.c
258
if (de == NULL)
sys/fs/devfs/devfs_devs.c
261
return (de->de_dir);
sys/fs/devfs/devfs_devs.c
269
struct devfs_dirent *de;
sys/fs/devfs/devfs_devs.c
289
de = devfs_newdirent(".", 1);
sys/fs/devfs/devfs_devs.c
290
de->de_dirent->d_type = DT_DIR;
sys/fs/devfs/devfs_devs.c
291
de->de_flags |= DE_DOT;
sys/fs/devfs/devfs_devs.c
292
TAILQ_INSERT_TAIL(&dd->de_dlist, de, de_list);
sys/fs/devfs/devfs_devs.c
293
de->de_dir = dd;
sys/fs/devfs/devfs_devs.c
296
de = devfs_newdirent("..", 2);
sys/fs/devfs/devfs_devs.c
297
de->de_dirent->d_type = DT_DIR;
sys/fs/devfs/devfs_devs.c
298
de->de_flags |= DE_DOTDOT;
sys/fs/devfs/devfs_devs.c
299
TAILQ_INSERT_TAIL(&dd->de_dlist, de, de_list);
sys/fs/devfs/devfs_devs.c
301
de->de_dir = dd;
sys/fs/devfs/devfs_devs.c
303
de->de_dir = dotdot;
sys/fs/devfs/devfs_devs.c
317
devfs_dirent_free(struct devfs_dirent *de)
sys/fs/devfs/devfs_devs.c
321
vp = de->de_vnode;
sys/fs/devfs/devfs_devs.c
323
if (vp != NULL && vp->v_data == de)
sys/fs/devfs/devfs_devs.c
326
free(de, M_DEVFS3);
sys/fs/devfs/devfs_devs.c
334
devfs_rmdir_empty(struct devfs_mount *dm, struct devfs_dirent *de)
sys/fs/devfs/devfs_devs.c
341
KASSERT(de->de_dirent->d_type == DT_DIR,
sys/fs/devfs/devfs_devs.c
344
if ((de->de_flags & DE_DOOMED) != 0 || de == dm->dm_rootdir)
sys/fs/devfs/devfs_devs.c
347
de_dot = TAILQ_FIRST(&de->de_dlist);
sys/fs/devfs/devfs_devs.c
355
dd = devfs_parent_dirent(de);
sys/fs/devfs/devfs_devs.c
357
TAILQ_REMOVE(&de->de_dlist, de_dot, de_list);
sys/fs/devfs/devfs_devs.c
358
TAILQ_REMOVE(&de->de_dlist, de_dotdot, de_list);
sys/fs/devfs/devfs_devs.c
359
TAILQ_REMOVE(&dd->de_dlist, de, de_list);
sys/fs/devfs/devfs_devs.c
361
devfs_delete(dm, de, DEVFS_DEL_NORECURSE);
sys/fs/devfs/devfs_devs.c
369
de = dd;
sys/fs/devfs/devfs_devs.c
378
devfs_delete(struct devfs_mount *dm, struct devfs_dirent *de, int flags)
sys/fs/devfs/devfs_devs.c
383
KASSERT((de->de_flags & DE_DOOMED) == 0,
sys/fs/devfs/devfs_devs.c
385
de->de_flags |= DE_DOOMED;
sys/fs/devfs/devfs_devs.c
388
dd = devfs_parent_dirent(de);
sys/fs/devfs/devfs_devs.c
391
if (de->de_flags & DE_USER) {
sys/fs/devfs/devfs_devs.c
399
vp = de->de_vnode;
sys/fs/devfs/devfs_devs.c
411
if (de->de_symlink) {
sys/fs/devfs/devfs_devs.c
412
free(de->de_symlink, M_DEVFS);
sys/fs/devfs/devfs_devs.c
413
de->de_symlink = NULL;
sys/fs/devfs/devfs_devs.c
416
mac_devfs_destroy(de);
sys/fs/devfs/devfs_devs.c
418
if (de->de_inode > DEVFS_ROOTINO) {
sys/fs/devfs/devfs_devs.c
419
devfs_free_cdp_inode(de->de_inode);
sys/fs/devfs/devfs_devs.c
420
de->de_inode = 0;
sys/fs/devfs/devfs_devs.c
422
if (DEVFS_DE_DROP(de))
sys/fs/devfs/devfs_devs.c
423
devfs_dirent_free(de);
sys/fs/devfs/devfs_devs.c
442
struct devfs_dirent *de;
sys/fs/devfs/devfs_devs.c
453
de = TAILQ_LAST(&dd->de_dlist, devfs_dlist_head);
sys/fs/devfs/devfs_devs.c
454
if (de == NULL)
sys/fs/devfs/devfs_devs.c
456
TAILQ_REMOVE(&dd->de_dlist, de, de_list);
sys/fs/devfs/devfs_devs.c
457
if (de->de_flags & DE_USER)
sys/fs/devfs/devfs_devs.c
459
if (de->de_flags & (DE_DOT | DE_DOTDOT))
sys/fs/devfs/devfs_devs.c
460
devfs_delete(dm, de, DEVFS_DEL_NORECURSE);
sys/fs/devfs/devfs_devs.c
461
else if (de->de_dirent->d_type == DT_DIR)
sys/fs/devfs/devfs_devs.c
462
devfs_purge(dm, de);
sys/fs/devfs/devfs_devs.c
464
devfs_delete(dm, de, DEVFS_DEL_NORECURSE);
sys/fs/devfs/devfs_devs.c
512
struct devfs_dirent *de;
sys/fs/devfs/devfs_devs.c
533
de = cdp->cdp_dirents[dm->dm_idx];
sys/fs/devfs/devfs_devs.c
535
KASSERT(cdp == de->de_cdp,
sys/fs/devfs/devfs_devs.c
537
cdp->cdp_c.si_name, cdp, de->de_cdp));
sys/fs/devfs/devfs_devs.c
538
KASSERT(de->de_dir != NULL, ("Null de->de_dir"));
sys/fs/devfs/devfs_devs.c
541
TAILQ_REMOVE(&de->de_dir->de_dlist, de, de_list);
sys/fs/devfs/devfs_devs.c
542
de->de_cdp = NULL;
sys/fs/devfs/devfs_devs.c
543
de->de_inode = 0;
sys/fs/devfs/devfs_devs.c
544
devfs_delete(dm, de, 0);
sys/fs/devfs/devfs_devs.c
571
de = cdp->cdp_dirents[dm->dm_idx];
sys/fs/devfs/devfs_devs.c
572
KASSERT(cdp == de->de_cdp, ("inconsistent cdp"));
sys/fs/devfs/devfs_devs.c
589
de = devfs_find(dd, s, q - s, 0);
sys/fs/devfs/devfs_devs.c
590
if (de == NULL)
sys/fs/devfs/devfs_devs.c
591
de = devfs_vmkdir(dm, s, q - s, dd, 0);
sys/fs/devfs/devfs_devs.c
592
else if (de->de_dirent->d_type == DT_LNK) {
sys/fs/devfs/devfs_devs.c
593
de = devfs_find(dd, s, q - s, DT_DIR);
sys/fs/devfs/devfs_devs.c
594
if (de == NULL)
sys/fs/devfs/devfs_devs.c
595
de = devfs_vmkdir(dm, s, q - s, dd, 0);
sys/fs/devfs/devfs_devs.c
596
de->de_flags |= DE_COVERED;
sys/fs/devfs/devfs_devs.c
599
dd = de;
sys/fs/devfs/devfs_devs.c
606
de = devfs_find(dd, s, q - s, DT_LNK);
sys/fs/devfs/devfs_devs.c
607
if (de != NULL)
sys/fs/devfs/devfs_devs.c
610
de = devfs_newdirent(s, q - s);
sys/fs/devfs/devfs_devs.c
612
de->de_uid = 0;
sys/fs/devfs/devfs_devs.c
613
de->de_gid = 0;
sys/fs/devfs/devfs_devs.c
614
de->de_mode = 0755;
sys/fs/devfs/devfs_devs.c
615
de->de_dirent->d_type = DT_LNK;
sys/fs/devfs/devfs_devs.c
623
de->de_symlink = malloc(j, M_DEVFS, M_WAITOK);
sys/fs/devfs/devfs_devs.c
624
de->de_symlink[0] = 0;
sys/fs/devfs/devfs_devs.c
626
strcat(de->de_symlink, "../");
sys/fs/devfs/devfs_devs.c
627
strcat(de->de_symlink, pdev->si_name);
sys/fs/devfs/devfs_devs.c
629
de->de_uid = cdp->cdp_c.si_uid;
sys/fs/devfs/devfs_devs.c
630
de->de_gid = cdp->cdp_c.si_gid;
sys/fs/devfs/devfs_devs.c
631
de->de_mode = cdp->cdp_c.si_mode;
sys/fs/devfs/devfs_devs.c
632
de->de_dirent->d_type = DT_CHR;
sys/fs/devfs/devfs_devs.c
634
de->de_flags |= de_flags;
sys/fs/devfs/devfs_devs.c
635
de->de_inode = cdp->cdp_inode;
sys/fs/devfs/devfs_devs.c
636
de->de_cdp = cdp;
sys/fs/devfs/devfs_devs.c
639
&cdp->cdp_c, de);
sys/fs/devfs/devfs_devs.c
641
de->de_dir = dd;
sys/fs/devfs/devfs_devs.c
642
TAILQ_INSERT_TAIL(&dd->de_dlist, de, de_list);
sys/fs/devfs/devfs_devs.c
643
devfs_rules_apply(dm, de);
sys/fs/devfs/devfs_devs.c
648
cdp->cdp_dirents[dm->dm_idx] = de;
sys/fs/devfs/devfs_devs.c
649
KASSERT(de->de_cdp != (void *)0xdeadc0de,
sys/fs/devfs/devfs_dir.c
117
devfs_dir_ref_de(struct devfs_mount *dm, struct devfs_dirent *de)
sys/fs/devfs/devfs_dir.c
121
namep = devfs_fqpn(dirname, dm, de, NULL);
sys/fs/devfs/devfs_dir.c
150
devfs_dir_unref_de(struct devfs_mount *dm, struct devfs_dirent *de)
sys/fs/devfs/devfs_dir.c
154
namep = devfs_fqpn(dirname, dm, de, NULL);
sys/fs/devfs/devfs_rule.c
104
struct devfs_mount *dm, struct devfs_dirent *de);
sys/fs/devfs/devfs_rule.c
109
static struct cdev *devfs_rule_getdev(struct devfs_dirent *de);
sys/fs/devfs/devfs_rule.c
113
struct devfs_dirent *de);
sys/fs/devfs/devfs_rule.c
115
struct devfs_dirent *de);
sys/fs/devfs/devfs_rule.c
117
struct devfs_dirent *de, unsigned depth);
sys/fs/devfs/devfs_rule.c
120
struct devfs_mount *dm, struct devfs_dirent *de,
sys/fs/devfs/devfs_rule.c
141
devfs_rules_apply(struct devfs_mount *dm, struct devfs_dirent *de)
sys/fs/devfs/devfs_rule.c
152
devfs_ruleset_applyde(ds, dm, de, devfs_rule_depth);
sys/fs/devfs/devfs_rule.c
344
struct devfs_dirent *de)
sys/fs/devfs/devfs_rule.c
348
TAILQ_FOREACH(de2, &de->de_dlist, de_list)
sys/fs/devfs/devfs_rule.c
350
devfs_rule_run(dk, dm, de, devfs_rule_depth);
sys/fs/devfs/devfs_rule.c
440
devfs_rule_getdev(struct devfs_dirent *de)
sys/fs/devfs/devfs_rule.c
443
if (de->de_cdp == NULL)
sys/fs/devfs/devfs_rule.c
445
if (de->de_cdp->cdp_flags & CDP_ACTIVE)
sys/fs/devfs/devfs_rule.c
446
return (&de->de_cdp->cdp_c);
sys/fs/devfs/devfs_rule.c
533
struct devfs_dirent *de)
sys/fs/devfs/devfs_rule.c
540
dev = devfs_rule_getdev(de);
sys/fs/devfs/devfs_rule.c
566
if (!devfs_rule_matchpath(dk, dm, de))
sys/fs/devfs/devfs_rule.c
577
struct devfs_dirent *de)
sys/fs/devfs/devfs_rule.c
585
dev = devfs_rule_getdev(de);
sys/fs/devfs/devfs_rule.c
588
else if (de->de_dirent->d_type == DT_LNK ||
sys/fs/devfs/devfs_rule.c
589
(de->de_dirent->d_type == DT_DIR && de != dm->dm_rootdir &&
sys/fs/devfs/devfs_rule.c
590
(de->de_flags & (DE_DOT | DE_DOTDOT)) == 0)) {
sys/fs/devfs/devfs_rule.c
592
pname = devfs_fqpn(specname, dm, de, NULL);
sys/fs/devfs/devfs_rule.c
607
struct devfs_dirent *de, unsigned depth)
sys/fs/devfs/devfs_rule.c
612
if (!devfs_rule_match(dk, dm, de))
sys/fs/devfs/devfs_rule.c
616
de->de_flags |= DE_WHITEOUT;
sys/fs/devfs/devfs_rule.c
618
de->de_flags &= ~DE_WHITEOUT;
sys/fs/devfs/devfs_rule.c
621
de->de_uid = dr->dr_uid;
sys/fs/devfs/devfs_rule.c
623
de->de_gid = dr->dr_gid;
sys/fs/devfs/devfs_rule.c
625
de->de_mode = dr->dr_mode;
sys/fs/devfs/devfs_rule.c
639
devfs_ruleset_applyde(ds, dm, de, depth - 1);
sys/fs/devfs/devfs_rule.c
649
struct devfs_dirent *de, unsigned depth)
sys/fs/devfs/devfs_rule.c
654
devfs_rule_run(dk, dm, de, depth);
sys/fs/devfs/devfs_vnops.c
1024
devfs_prison_check(struct devfs_dirent *de, struct thread *td)
sys/fs/devfs/devfs_vnops.c
1031
cdp = de->de_cdp;
sys/fs/devfs/devfs_vnops.c
1060
struct devfs_dirent *de, *dd;
sys/fs/devfs/devfs_vnops.c
1104
de = devfs_parent_dirent(dd);
sys/fs/devfs/devfs_vnops.c
1105
if (de == NULL)
sys/fs/devfs/devfs_vnops.c
1109
error = devfs_allocv(de, mp, cnp->cn_lkflags & LK_TYPE_MASK,
sys/fs/devfs/devfs_vnops.c
1117
de = devfs_find(dd, cnp->cn_nameptr, cnp->cn_namelen, 0);
sys/fs/devfs/devfs_vnops.c
1118
while (de == NULL) { /* While(...) so we can use break */
sys/fs/devfs/devfs_vnops.c
1182
de = *dde;
sys/fs/devfs/devfs_vnops.c
1188
if (de == NULL || de->de_flags & DE_WHITEOUT) {
sys/fs/devfs/devfs_vnops.c
1196
if (devfs_prison_check(de, td))
sys/fs/devfs/devfs_vnops.c
1209
error = devfs_allocv(de, mp, cnp->cn_lkflags & LK_TYPE_MASK, vpp);
sys/fs/devfs/devfs_vnops.c
1237
struct devfs_dirent *dd, *de;
sys/fs/devfs/devfs_vnops.c
1256
TAILQ_FOREACH(de, &dd->de_dlist, de_list) {
sys/fs/devfs/devfs_vnops.c
1257
if (cnp->cn_namelen != de->de_dirent->d_namlen)
sys/fs/devfs/devfs_vnops.c
1259
if (de->de_dirent->d_type == DT_CHR &&
sys/fs/devfs/devfs_vnops.c
1260
(de->de_cdp->cdp_flags & CDP_ACTIVE) == 0)
sys/fs/devfs/devfs_vnops.c
1262
if (bcmp(cnp->cn_nameptr, de->de_dirent->d_name,
sys/fs/devfs/devfs_vnops.c
1263
de->de_dirent->d_namlen) != 0)
sys/fs/devfs/devfs_vnops.c
1265
if (de->de_flags & DE_WHITEOUT)
sys/fs/devfs/devfs_vnops.c
1269
if (de == NULL)
sys/fs/devfs/devfs_vnops.c
1271
de->de_flags &= ~DE_WHITEOUT;
sys/fs/devfs/devfs_vnops.c
1272
error = devfs_allocv(de, dvp->v_mount, LK_EXCLUSIVE, vpp);
sys/fs/devfs/devfs_vnops.c
1480
struct devfs_dirent *de;
sys/fs/devfs/devfs_vnops.c
1515
de = ap->a_vp->v_data;
sys/fs/devfs/devfs_vnops.c
1518
TAILQ_FOREACH(dd, &de->de_dlist, de_list) {
sys/fs/devfs/devfs_vnops.c
1525
de = dd->de_dir;
sys/fs/devfs/devfs_vnops.c
1527
de = dd;
sys/fs/devfs/devfs_vnops.c
1537
dp->d_fileno = de->de_inode;
sys/fs/devfs/devfs_vnops.c
1565
struct devfs_dirent *de;
sys/fs/devfs/devfs_vnops.c
1567
de = ap->a_vp->v_data;
sys/fs/devfs/devfs_vnops.c
1568
return (uiomove(de->de_symlink, strlen(de->de_symlink), ap->a_uio));
sys/fs/devfs/devfs_vnops.c
1574
struct devfs_dirent *de;
sys/fs/devfs/devfs_vnops.c
1577
de = vp->v_data;
sys/fs/devfs/devfs_vnops.c
1578
if (de != NULL) {
sys/fs/devfs/devfs_vnops.c
1579
MPASS(de->de_usecount == 0);
sys/fs/devfs/devfs_vnops.c
1580
de->de_vnode = NULL;
sys/fs/devfs/devfs_vnops.c
1627
struct devfs_dirent *de, *de_covered;
sys/fs/devfs/devfs_vnops.c
1635
de = vp->v_data;
sys/fs/devfs/devfs_vnops.c
1636
if (de->de_cdp == NULL) {
sys/fs/devfs/devfs_vnops.c
1637
TAILQ_REMOVE(&dd->de_dlist, de, de_list);
sys/fs/devfs/devfs_vnops.c
1638
if (de->de_dirent->d_type == DT_LNK) {
sys/fs/devfs/devfs_vnops.c
1639
de_covered = devfs_find(dd, de->de_dirent->d_name,
sys/fs/devfs/devfs_vnops.c
1640
de->de_dirent->d_namlen, 0);
sys/fs/devfs/devfs_vnops.c
1648
devfs_delete(dmp, de, 0);
sys/fs/devfs/devfs_vnops.c
1654
de->de_flags |= DE_WHITEOUT;
sys/fs/devfs/devfs_vnops.c
1672
struct devfs_dirent *de;
sys/fs/devfs/devfs_vnops.c
1696
de = cdp->cdp_dirents[i];
sys/fs/devfs/devfs_vnops.c
1697
if (de == NULL)
sys/fs/devfs/devfs_vnops.c
1700
vp2 = de->de_vnode;
sys/fs/devfs/devfs_vnops.c
1778
struct devfs_dirent *de;
sys/fs/devfs/devfs_vnops.c
1805
de = vp->v_data;
sys/fs/devfs/devfs_vnops.c
1807
de = de->de_dir;
sys/fs/devfs/devfs_vnops.c
1811
uid = de->de_uid;
sys/fs/devfs/devfs_vnops.c
1815
gid = de->de_gid;
sys/fs/devfs/devfs_vnops.c
1818
if (uid != de->de_uid || gid != de->de_gid) {
sys/fs/devfs/devfs_vnops.c
1819
if ((ap->a_cred->cr_uid != de->de_uid) || uid != de->de_uid ||
sys/fs/devfs/devfs_vnops.c
1820
(gid != de->de_gid && !groupmember(gid, ap->a_cred))) {
sys/fs/devfs/devfs_vnops.c
1825
de->de_uid = uid;
sys/fs/devfs/devfs_vnops.c
1826
de->de_gid = gid;
sys/fs/devfs/devfs_vnops.c
1831
if (ap->a_cred->cr_uid != de->de_uid) {
sys/fs/devfs/devfs_vnops.c
1836
de->de_mode = vap->va_mode;
sys/fs/devfs/devfs_vnops.c
1848
de->de_atime = vap->va_atime;
sys/fs/devfs/devfs_vnops.c
1854
de->de_mtime = vap->va_mtime;
sys/fs/devfs/devfs_vnops.c
1863
vfs_timestamp(&de->de_mtime);
sys/fs/devfs/devfs_vnops.c
1876
struct devfs_dirent *de;
sys/fs/devfs/devfs_vnops.c
1879
de = vp->v_data;
sys/fs/devfs/devfs_vnops.c
1882
mac_devfs_update(vp->v_mount, de, vp);
sys/fs/devfs/devfs_vnops.c
1900
struct devfs_dirent *de, *de_covered, *de_dotdot;
sys/fs/devfs/devfs_vnops.c
1911
de = devfs_newdirent(ap->a_cnp->cn_nameptr, ap->a_cnp->cn_namelen);
sys/fs/devfs/devfs_vnops.c
1912
de->de_flags = DE_USER;
sys/fs/devfs/devfs_vnops.c
1913
de->de_uid = 0;
sys/fs/devfs/devfs_vnops.c
1914
de->de_gid = 0;
sys/fs/devfs/devfs_vnops.c
1915
de->de_mode = 0755;
sys/fs/devfs/devfs_vnops.c
1916
de->de_inode = alloc_unr(devfs_inos);
sys/fs/devfs/devfs_vnops.c
1917
de->de_dir = dd;
sys/fs/devfs/devfs_vnops.c
1918
de->de_dirent->d_type = DT_LNK;
sys/fs/devfs/devfs_vnops.c
1920
de->de_symlink = malloc(i, M_DEVFS, M_WAITOK);
sys/fs/devfs/devfs_vnops.c
1921
bcopy(ap->a_target, de->de_symlink, i);
sys/fs/devfs/devfs_vnops.c
1923
mac_devfs_create_symlink(ap->a_cnp->cn_cred, dmp->dm_mount, dd, de);
sys/fs/devfs/devfs_vnops.c
1925
de_covered = devfs_find(dd, de->de_dirent->d_name,
sys/fs/devfs/devfs_vnops.c
1926
de->de_dirent->d_namlen, 0);
sys/fs/devfs/devfs_vnops.c
1929
devfs_delete(dmp, de, DEVFS_DEL_NORECURSE);
sys/fs/devfs/devfs_vnops.c
1940
TAILQ_INSERT_AFTER(&dd->de_dlist, de_dotdot, de, de_list);
sys/fs/devfs/devfs_vnops.c
1942
devfs_rules_apply(dmp, de);
sys/fs/devfs/devfs_vnops.c
1944
return (devfs_allocv(de, ap->a_dvp->v_mount, LK_EXCLUSIVE, ap->a_vpp));
sys/fs/devfs/devfs_vnops.c
252
struct devfs_dirent *de;
sys/fs/devfs/devfs_vnops.c
262
de = vp->v_data;
sys/fs/devfs/devfs_vnops.c
264
MPASS(de != NULL);
sys/fs/devfs/devfs_vnops.c
267
de->de_usecount++;
sys/fs/devfs/devfs_vnops.c
276
struct devfs_dirent *de;
sys/fs/devfs/devfs_vnops.c
283
de = vp->v_data;
sys/fs/devfs/devfs_vnops.c
285
if (de == NULL)
sys/fs/devfs/devfs_vnops.c
288
MPASS(de->de_usecount == 0);
sys/fs/devfs/devfs_vnops.c
291
if (dev->si_usecount < de->de_usecount)
sys/fs/devfs/devfs_vnops.c
294
__func__, dev, dev->si_usecount, de->de_usecount);
sys/fs/devfs/devfs_vnops.c
296
dev->si_usecount -= de->de_usecount;
sys/fs/devfs/devfs_vnops.c
297
de->de_usecount = 0;
sys/fs/devfs/devfs_vnops.c
299
if (de->de_usecount == 0)
sys/fs/devfs/devfs_vnops.c
303
de->de_usecount--;
sys/fs/devfs/devfs_vnops.c
364
struct devfs_dirent *de;
sys/fs/devfs/devfs_vnops.c
401
de = vp->v_data;
sys/fs/devfs/devfs_vnops.c
402
KASSERT(de != NULL,
sys/fs/devfs/devfs_vnops.c
404
if ((de->de_flags & DE_DOOMED) != 0) {
sys/fs/devfs/devfs_vnops.c
420
struct devfs_dirent *dd, *de;
sys/fs/devfs/devfs_vnops.c
449
de = devfs_parent_dirent(dd);
sys/fs/devfs/devfs_vnops.c
450
if (de == NULL) {
sys/fs/devfs/devfs_vnops.c
455
*dvp = de->de_vnode;
sys/fs/devfs/devfs_vnops.c
481
struct devfs_dirent *de;
sys/fs/devfs/devfs_vnops.c
493
de = dd;
sys/fs/devfs/devfs_vnops.c
494
while (de != dmp->dm_rootdir) {
sys/fs/devfs/devfs_vnops.c
501
i -= de->de_dirent->d_namlen;
sys/fs/devfs/devfs_vnops.c
504
bcopy(de->de_dirent->d_name, buf + i,
sys/fs/devfs/devfs_vnops.c
505
de->de_dirent->d_namlen);
sys/fs/devfs/devfs_vnops.c
506
de = devfs_parent_dirent(de);
sys/fs/devfs/devfs_vnops.c
507
if (de == NULL)
sys/fs/devfs/devfs_vnops.c
515
struct devfs_dirent *de)
sys/fs/devfs/devfs_vnops.c
520
if (de->de_flags & DE_DOOMED)
sys/fs/devfs/devfs_vnops.c
522
if (DEVFS_DE_DROP(de)) {
sys/fs/devfs/devfs_vnops.c
524
devfs_dirent_free(de);
sys/fs/devfs/devfs_vnops.c
543
devfs_allocv(struct devfs_dirent *de, struct mount *mp, int lockmode,
sys/fs/devfs/devfs_vnops.c
554
if (de->de_flags & DE_DOOMED) {
sys/fs/devfs/devfs_vnops.c
559
DEVFS_DE_HOLD(de);
sys/fs/devfs/devfs_vnops.c
562
vp = de->de_vnode;
sys/fs/devfs/devfs_vnops.c
569
if (devfs_allocv_drop_refs(0, dmp, de)) {
sys/fs/devfs/devfs_vnops.c
574
if (de->de_vnode == vp) {
sys/fs/devfs/devfs_vnops.c
575
de->de_vnode = NULL;
sys/fs/devfs/devfs_vnops.c
587
if (de->de_dirent->d_type == DT_CHR) {
sys/fs/devfs/devfs_vnops.c
588
if (!(de->de_cdp->cdp_flags & CDP_ACTIVE)) {
sys/fs/devfs/devfs_vnops.c
589
devfs_allocv_drop_refs(1, dmp, de);
sys/fs/devfs/devfs_vnops.c
592
dev = &de->de_cdp->cdp_c;
sys/fs/devfs/devfs_vnops.c
598
devfs_allocv_drop_refs(1, dmp, de);
sys/fs/devfs/devfs_vnops.c
603
if (de->de_dirent->d_type == DT_CHR) {
sys/fs/devfs/devfs_vnops.c
620
} else if (de->de_dirent->d_type == DT_DIR) {
sys/fs/devfs/devfs_vnops.c
622
} else if (de->de_dirent->d_type == DT_LNK) {
sys/fs/devfs/devfs_vnops.c
630
vp->v_data = de;
sys/fs/devfs/devfs_vnops.c
631
de->de_vnode = vp;
sys/fs/devfs/devfs_vnops.c
637
de->de_vnode = NULL;
sys/fs/devfs/devfs_vnops.c
641
(void) devfs_allocv_drop_refs(1, dmp, de);
sys/fs/devfs/devfs_vnops.c
644
if (devfs_allocv_drop_refs(0, dmp, de)) {
sys/fs/devfs/devfs_vnops.c
650
mac_devfs_vnode_associate(mp, de, vp);
sys/fs/devfs/devfs_vnops.c
662
struct devfs_dirent *de;
sys/fs/devfs/devfs_vnops.c
666
de = vp->v_data;
sys/fs/devfs/devfs_vnops.c
668
de = de->de_dir;
sys/fs/devfs/devfs_vnops.c
670
error = vaccess(vp->v_type, de->de_mode, de->de_uid, de->de_gid,
sys/fs/devfs/devfs_vnops.c
683
if (p->p_session->s_ttydp == de->de_cdp)
sys/fs/devfs/devfs_vnops.c
700
struct devfs_dirent *de = vp->v_data;
sys/fs/devfs/devfs_vnops.c
719
if (de->de_usecount == 2 && td != NULL) {
sys/fs/devfs/devfs_vnops.c
816
struct devfs_dirent *de;
sys/fs/devfs/devfs_vnops.c
829
de = vp->v_data;
sys/fs/devfs/devfs_vnops.c
830
KASSERT(de != NULL, ("Null dirent in devfs_getattr vp=%p", vp));
sys/fs/devfs/devfs_vnops.c
832
de = de->de_dir;
sys/fs/devfs/devfs_vnops.c
833
KASSERT(de != NULL,
sys/fs/devfs/devfs_vnops.c
836
vap->va_uid = de->de_uid;
sys/fs/devfs/devfs_vnops.c
837
vap->va_gid = de->de_gid;
sys/fs/devfs/devfs_vnops.c
838
vap->va_mode = de->de_mode;
sys/fs/devfs/devfs_vnops.c
840
vap->va_size = strlen(de->de_symlink);
sys/fs/devfs/devfs_vnops.c
860
fix(de->de_atime);
sys/fs/devfs/devfs_vnops.c
861
vap->va_atime = de->de_atime;
sys/fs/devfs/devfs_vnops.c
862
fix(de->de_mtime);
sys/fs/devfs/devfs_vnops.c
863
vap->va_mtime = de->de_mtime;
sys/fs/devfs/devfs_vnops.c
864
fix(de->de_ctime);
sys/fs/devfs/devfs_vnops.c
865
vap->va_ctime = de->de_ctime;
sys/fs/devfs/devfs_vnops.c
880
vap->va_nlink = de->de_links;
sys/fs/devfs/devfs_vnops.c
881
vap->va_fileid = de->de_inode;
sys/fs/ext2fs/ext2_lookup.c
123
struct ext2fs_direct_2 *de, int entryoffsetinblock);
sys/fs/ext2fs/ext2_lookup.c
815
ext2_check_direntry(struct vnode *dp, struct ext2fs_direct_2 *de,
sys/fs/ext2fs/ext2_lookup.c
821
if (le16toh(de->e2d_reclen) < EXT2_DIR_REC_LEN(1))
sys/fs/ext2fs/ext2_lookup.c
823
else if (le16toh(de->e2d_reclen) % 4 != 0)
sys/fs/ext2fs/ext2_lookup.c
825
else if (le16toh(de->e2d_reclen) < EXT2_DIR_REC_LEN(de->e2d_namlen))
sys/fs/ext2fs/ext2_lookup.c
827
else if (entryoffsetinblock + le16toh(de->e2d_reclen)> fs->e2fs_bsize)
sys/fs/ext2fs/ext2_lookup.c
829
else if (le32toh(de->e2d_ino) > fs->e2fs->e2fs_icount)
sys/fs/ext2fs/ext2_lookup.c
831
else if (le32toh(de->e2d_ino) == EXT2_ROOTINO &&
sys/fs/ext2fs/ext2_lookup.c
832
((de->e2d_namlen != 1 && de->e2d_namlen != 2) ||
sys/fs/ext2fs/ext2_lookup.c
833
(de->e2d_name[0] != '.') ||
sys/fs/ext2fs/ext2_lookup.c
834
(de->e2d_namlen == 2 && de->e2d_name[1] != '.')))
sys/fs/ext2fs/ext2_lookup.c
840
le32toh(de->e2d_ino), le16toh(de->e2d_reclen),
sys/fs/ext2fs/ext2_lookup.c
841
de->e2d_namlen);
sys/fs/fuse/fuse_internal.c
610
struct dirent *de;
sys/fs/fuse/fuse_internal.c
655
de = (struct dirent *)cookediov->base;
sys/fs/fuse/fuse_internal.c
656
de->d_fileno = fudge->ino;
sys/fs/fuse/fuse_internal.c
657
de->d_off = fudge->off;
sys/fs/fuse/fuse_internal.c
658
de->d_reclen = oreclen;
sys/fs/fuse/fuse_internal.c
659
de->d_type = fudge->type;
sys/fs/fuse/fuse_internal.c
660
de->d_namlen = fudge->namelen;
sys/fs/fuse/fuse_internal.c
664
dirent_terminate(de);
sys/fs/msdosfs/denode.h
218
#define DETOV(de) ((de)->de_vnode)
sys/fs/msdosfs/msdosfs_denode.c
76
struct denode *de;
sys/fs/msdosfs/msdosfs_denode.c
80
de = VTODE(vp);
sys/fs/msdosfs/msdosfs_denode.c
81
return (de->de_inode != *a) || (de->de_refcnt <= 0);
sys/fs/smbfs/smbfs_io.c
100
de.d_reclen = DE_SIZE;
sys/fs/smbfs/smbfs_io.c
101
de.d_fileno = (offset == 0) ? np->n_ino :
sys/fs/smbfs/smbfs_io.c
103
if (de.d_fileno == 0)
sys/fs/smbfs/smbfs_io.c
104
de.d_fileno = 0x7ffffffd + offset;
sys/fs/smbfs/smbfs_io.c
105
de.d_off = offset + 1;
sys/fs/smbfs/smbfs_io.c
106
de.d_namlen = offset + 1;
sys/fs/smbfs/smbfs_io.c
107
de.d_name[0] = '.';
sys/fs/smbfs/smbfs_io.c
108
de.d_name[1] = '.';
sys/fs/smbfs/smbfs_io.c
109
de.d_type = DT_DIR;
sys/fs/smbfs/smbfs_io.c
110
dirent_terminate(&de);
sys/fs/smbfs/smbfs_io.c
111
error = uiomove(&de, DE_SIZE, uio);
sys/fs/smbfs/smbfs_io.c
152
bzero((caddr_t)&de, DE_SIZE);
sys/fs/smbfs/smbfs_io.c
153
de.d_reclen = DE_SIZE;
sys/fs/smbfs/smbfs_io.c
154
de.d_fileno = ctx->f_attr.fa_ino;
sys/fs/smbfs/smbfs_io.c
155
de.d_off = offset + 1;
sys/fs/smbfs/smbfs_io.c
156
de.d_type = (ctx->f_attr.fa_attr & SMB_FA_DIR) ? DT_DIR : DT_REG;
sys/fs/smbfs/smbfs_io.c
157
de.d_namlen = ctx->f_nmlen;
sys/fs/smbfs/smbfs_io.c
158
bcopy(ctx->f_name, de.d_name, de.d_namlen);
sys/fs/smbfs/smbfs_io.c
159
dirent_terminate(&de);
sys/fs/smbfs/smbfs_io.c
164
cn.cn_nameptr = de.d_name;
sys/fs/smbfs/smbfs_io.c
165
cn.cn_namelen = de.d_namlen;
sys/fs/smbfs/smbfs_io.c
170
error = uiomove(&de, DE_SIZE, uio);
sys/fs/smbfs/smbfs_io.c
76
struct dirent de;
sys/fs/smbfs/smbfs_io.c
99
bzero((caddr_t)&de, DE_SIZE);
sys/fs/tmpfs/tmpfs.h
534
#define TMPFS_DIRENT_MATCHES(de, name, len) \
sys/fs/tmpfs/tmpfs.h
535
(de->td_namelen == len && \
sys/fs/tmpfs/tmpfs.h
536
bcmp((de)->ud.td_name, (name), (de)->td_namelen) == 0)
sys/fs/tmpfs/tmpfs_subr.c
1170
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_subr.c
1207
&de);
sys/fs/tmpfs/tmpfs_subr.c
1216
tmpfs_free_dirent(tmp, de);
sys/fs/tmpfs/tmpfs_subr.c
1226
tmpfs_dir_attach(dvp, de);
sys/fs/tmpfs/tmpfs_subr.c
1233
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_subr.c
1235
de = RB_MIN(tmpfs_dir, &dnode->tn_dir.tn_dirhead);
sys/fs/tmpfs/tmpfs_subr.c
1236
dc->tdc_tree = de;
sys/fs/tmpfs/tmpfs_subr.c
1237
if (de != NULL && tmpfs_dirent_duphead(de))
sys/fs/tmpfs/tmpfs_subr.c
1238
de = LIST_FIRST(&de->ud.td_duphead);
sys/fs/tmpfs/tmpfs_subr.c
1239
dc->tdc_current = de;
sys/fs/tmpfs/tmpfs_subr.c
1247
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_subr.c
1257
if ((de = dc->tdc_current) != NULL && tmpfs_dirent_duphead(de)) {
sys/fs/tmpfs/tmpfs_subr.c
1258
dc->tdc_current = LIST_FIRST(&de->ud.td_duphead);
sys/fs/tmpfs/tmpfs_subr.c
1269
struct tmpfs_dirent *de, dekey;
sys/fs/tmpfs/tmpfs_subr.c
1272
de = RB_FIND(tmpfs_dir, &dnode->tn_dir.tn_dirhead, &dekey);
sys/fs/tmpfs/tmpfs_subr.c
1273
return (de);
sys/fs/tmpfs/tmpfs_subr.c
1282
struct tmpfs_dirent *de, dekey;
sys/fs/tmpfs/tmpfs_subr.c
1287
(de = node->tn_dir.tn_readdir_lastp) != NULL) {
sys/fs/tmpfs/tmpfs_subr.c
1290
if (cookie == tmpfs_dirent_cookie(de))
sys/fs/tmpfs/tmpfs_subr.c
1295
LIST_FOREACH(de, &node->tn_dir.tn_dupindex,
sys/fs/tmpfs/tmpfs_subr.c
1297
MPASS(tmpfs_dirent_dup(de));
sys/fs/tmpfs/tmpfs_subr.c
1298
if (de->td_cookie == cookie)
sys/fs/tmpfs/tmpfs_subr.c
1301
if (de->td_cookie < cookie) {
sys/fs/tmpfs/tmpfs_subr.c
1302
de = NULL;
sys/fs/tmpfs/tmpfs_subr.c
1306
MPASS(de == NULL);
sys/fs/tmpfs/tmpfs_subr.c
1311
de = NULL;
sys/fs/tmpfs/tmpfs_subr.c
1315
de = RB_NFIND(tmpfs_dir, dirhead, &dekey);
sys/fs/tmpfs/tmpfs_subr.c
1317
dc->tdc_tree = de;
sys/fs/tmpfs/tmpfs_subr.c
1318
dc->tdc_current = de;
sys/fs/tmpfs/tmpfs_subr.c
1319
if (de != NULL && tmpfs_dirent_duphead(de)) {
sys/fs/tmpfs/tmpfs_subr.c
1320
dc->tdc_current = LIST_FIRST(&de->ud.td_duphead);
sys/fs/tmpfs/tmpfs_subr.c
1326
dc->tdc_tree = de;
sys/fs/tmpfs/tmpfs_subr.c
1327
dc->tdc_current = de;
sys/fs/tmpfs/tmpfs_subr.c
1328
if (de != NULL && tmpfs_dirent_dup(de))
sys/fs/tmpfs/tmpfs_subr.c
1330
de->td_hash);
sys/fs/tmpfs/tmpfs_subr.c
1347
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_subr.c
1356
de = tmpfs_dir_xlookup_hash(node, hash);
sys/fs/tmpfs/tmpfs_subr.c
1357
if (de != NULL && tmpfs_dirent_duphead(de)) {
sys/fs/tmpfs/tmpfs_subr.c
1358
duphead = &de->ud.td_duphead;
sys/fs/tmpfs/tmpfs_subr.c
1359
LIST_FOREACH(de, duphead, uh.td_dup.entries) {
sys/fs/tmpfs/tmpfs_subr.c
1360
if (TMPFS_DIRENT_MATCHES(de, cnp->cn_nameptr,
sys/fs/tmpfs/tmpfs_subr.c
1364
} else if (de != NULL) {
sys/fs/tmpfs/tmpfs_subr.c
1365
if (!TMPFS_DIRENT_MATCHES(de, cnp->cn_nameptr,
sys/fs/tmpfs/tmpfs_subr.c
1367
de = NULL;
sys/fs/tmpfs/tmpfs_subr.c
1369
if (de != NULL && f != NULL && de->td_node != f)
sys/fs/tmpfs/tmpfs_subr.c
1370
de = NULL;
sys/fs/tmpfs/tmpfs_subr.c
1372
return (de);
sys/fs/tmpfs/tmpfs_subr.c
1384
struct tmpfs_dirent *de, *pde;
sys/fs/tmpfs/tmpfs_subr.c
1387
de = LIST_FIRST(dupindex);
sys/fs/tmpfs/tmpfs_subr.c
1388
if (de == NULL || de->td_cookie < TMPFS_DIRCOOKIE_DUP_MAX) {
sys/fs/tmpfs/tmpfs_subr.c
1389
if (de == NULL)
sys/fs/tmpfs/tmpfs_subr.c
1392
nde->td_cookie = de->td_cookie + 1;
sys/fs/tmpfs/tmpfs_subr.c
1405
pde = de;
sys/fs/tmpfs/tmpfs_subr.c
1406
de = LIST_NEXT(de, uh.td_dup.index_entries);
sys/fs/tmpfs/tmpfs_subr.c
1407
if (de == NULL && pde->td_cookie != TMPFS_DIRCOOKIE_DUP_MIN) {
sys/fs/tmpfs/tmpfs_subr.c
1416
} else if (de == NULL) {
sys/fs/tmpfs/tmpfs_subr.c
1429
if (de->td_cookie + 1 == pde->td_cookie ||
sys/fs/tmpfs/tmpfs_subr.c
1430
de->td_cookie >= TMPFS_DIRCOOKIE_DUP_MAX)
sys/fs/tmpfs/tmpfs_subr.c
1432
nde->td_cookie = de->td_cookie + 1;
sys/fs/tmpfs/tmpfs_subr.c
1435
MPASS(nde->td_cookie > de->td_cookie);
sys/fs/tmpfs/tmpfs_subr.c
1436
LIST_INSERT_BEFORE(de, nde, uh.td_dup.index_entries);
sys/fs/tmpfs/tmpfs_subr.c
1448
tmpfs_dir_attach(struct vnode *vp, struct tmpfs_dirent *de)
sys/fs/tmpfs/tmpfs_subr.c
1454
MPASS(de->td_namelen > 0);
sys/fs/tmpfs/tmpfs_subr.c
1455
MPASS(de->td_hash >= TMPFS_DIRCOOKIE_MIN);
sys/fs/tmpfs/tmpfs_subr.c
1456
MPASS(de->td_cookie == de->td_hash);
sys/fs/tmpfs/tmpfs_subr.c
1462
MPASS(!tmpfs_dirent_dup(de));
sys/fs/tmpfs/tmpfs_subr.c
1463
xde = RB_INSERT(tmpfs_dir, &dnode->tn_dir.tn_dirhead, de);
sys/fs/tmpfs/tmpfs_subr.c
1465
tmpfs_dir_attach_dup(dnode, &xde->ud.td_duphead, de);
sys/fs/tmpfs/tmpfs_subr.c
1481
tmpfs_dir_attach_dup(dnode, &xde->ud.td_duphead, de);
sys/fs/tmpfs/tmpfs_subr.c
1495
tmpfs_dir_detach(struct vnode *vp, struct tmpfs_dirent *de)
sys/fs/tmpfs/tmpfs_subr.c
1509
if (tmpfs_dirent_dup(de)) {
sys/fs/tmpfs/tmpfs_subr.c
1511
if (LIST_NEXT(de, uh.td_dup.entries) == NULL) {
sys/fs/tmpfs/tmpfs_subr.c
1512
xde = tmpfs_dir_xlookup_hash(dnode, de->td_hash);
sys/fs/tmpfs/tmpfs_subr.c
1516
LIST_REMOVE(de, uh.td_dup.entries);
sys/fs/tmpfs/tmpfs_subr.c
1517
LIST_REMOVE(de, uh.td_dup.index_entries);
sys/fs/tmpfs/tmpfs_subr.c
1526
de->td_cookie = de->td_hash;
sys/fs/tmpfs/tmpfs_subr.c
1528
RB_REMOVE(tmpfs_dir, head, de);
sys/fs/tmpfs/tmpfs_subr.c
1539
struct tmpfs_dirent *de, *dde, *nde;
sys/fs/tmpfs/tmpfs_subr.c
1541
RB_FOREACH_SAFE(de, tmpfs_dir, &dnode->tn_dir.tn_dirhead, nde) {
sys/fs/tmpfs/tmpfs_subr.c
1542
RB_REMOVE(tmpfs_dir, &dnode->tn_dir.tn_dirhead, de);
sys/fs/tmpfs/tmpfs_subr.c
1544
de->td_node = NULL;
sys/fs/tmpfs/tmpfs_subr.c
1545
if (tmpfs_dirent_duphead(de)) {
sys/fs/tmpfs/tmpfs_subr.c
1546
while ((dde = LIST_FIRST(&de->ud.td_duphead)) != NULL) {
sys/fs/tmpfs/tmpfs_subr.c
1552
tmpfs_free_dirent(tmp, de);
sys/fs/tmpfs/tmpfs_subr.c
1648
struct tmpfs_dirent *de, *nde;
sys/fs/tmpfs/tmpfs_subr.c
1674
de = tmpfs_dir_first(node, &dc);
sys/fs/tmpfs/tmpfs_subr.c
1675
off = tmpfs_dirent_cookie(de);
sys/fs/tmpfs/tmpfs_subr.c
1683
if (de == NULL)
sys/fs/tmpfs/tmpfs_subr.c
1689
de = tmpfs_dir_lookup_cookie(node, uio->uio_offset, &dc);
sys/fs/tmpfs/tmpfs_subr.c
1690
if (de == NULL)
sys/fs/tmpfs/tmpfs_subr.c
1693
off = tmpfs_dirent_cookie(de);
sys/fs/tmpfs/tmpfs_subr.c
1707
if (de->td_node == NULL) {
sys/fs/tmpfs/tmpfs_subr.c
1711
d.d_fileno = de->td_node->tn_id;
sys/fs/tmpfs/tmpfs_subr.c
1712
switch (de->td_node->tn_type) {
sys/fs/tmpfs/tmpfs_subr.c
1743
de->td_node, (int)de->td_node->tn_type);
sys/fs/tmpfs/tmpfs_subr.c
1746
d.d_namlen = de->td_namelen;
sys/fs/tmpfs/tmpfs_subr.c
1747
MPASS(de->td_namelen < sizeof(d.d_name));
sys/fs/tmpfs/tmpfs_subr.c
1748
(void)memcpy(d.d_name, de->ud.td_name, de->td_namelen);
sys/fs/tmpfs/tmpfs_subr.c
1770
de = nde;
sys/fs/tmpfs/tmpfs_subr.c
1772
off = tmpfs_dirent_cookie(de);
sys/fs/tmpfs/tmpfs_subr.c
1777
} while (error == 0 && uio->uio_resid > 0 && de != NULL);
sys/fs/tmpfs/tmpfs_subr.c
1781
off = tmpfs_dirent_cookie(de);
sys/fs/tmpfs/tmpfs_subr.c
1786
node->tn_dir.tn_readdir_lastp = de;
sys/fs/tmpfs/tmpfs_subr.c
1795
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_subr.c
1800
cnp->cn_nameptr, cnp->cn_namelen, &de);
sys/fs/tmpfs/tmpfs_subr.c
1804
tmpfs_dir_attach(dvp, de);
sys/fs/tmpfs/tmpfs_subr.c
1805
dnode->tn_dir.tn_wht_size += sizeof(*de);
sys/fs/tmpfs/tmpfs_subr.c
1812
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_subr.c
1816
de = tmpfs_dir_lookup(dnode, NULL, cnp);
sys/fs/tmpfs/tmpfs_subr.c
1817
MPASS(de != NULL && de->td_node == NULL);
sys/fs/tmpfs/tmpfs_subr.c
1818
MPASS(dnode->tn_dir.tn_wht_size >= sizeof(*de));
sys/fs/tmpfs/tmpfs_subr.c
1819
dnode->tn_dir.tn_wht_size -= sizeof(*de);
sys/fs/tmpfs/tmpfs_subr.c
1820
tmpfs_dir_detach(dvp, de);
sys/fs/tmpfs/tmpfs_subr.c
1821
tmpfs_free_dirent(VFS_TO_TMPFS(dvp->v_mount), de);
sys/fs/tmpfs/tmpfs_subr.c
1834
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_subr.c
1839
while ((de = tmpfs_dir_first(dnode, &dc)) != NULL) {
sys/fs/tmpfs/tmpfs_subr.c
1840
KASSERT(de->td_node == NULL, ("%s: non-whiteout dirent %p",
sys/fs/tmpfs/tmpfs_subr.c
1841
__func__, de));
sys/fs/tmpfs/tmpfs_subr.c
1842
dnode->tn_dir.tn_wht_size -= sizeof(*de);
sys/fs/tmpfs/tmpfs_subr.c
1843
tmpfs_dir_detach(dvp, de);
sys/fs/tmpfs/tmpfs_subr.c
1844
tmpfs_free_dirent(VFS_TO_TMPFS(dvp->v_mount), de);
sys/fs/tmpfs/tmpfs_subr.c
827
tmpfs_dirent_cookie(struct tmpfs_dirent *de)
sys/fs/tmpfs/tmpfs_subr.c
829
if (de == NULL)
sys/fs/tmpfs/tmpfs_subr.c
832
MPASS(de->td_cookie >= TMPFS_DIRCOOKIE_MIN);
sys/fs/tmpfs/tmpfs_subr.c
834
return (de->td_cookie);
sys/fs/tmpfs/tmpfs_subr.c
838
tmpfs_dirent_dup(struct tmpfs_dirent *de)
sys/fs/tmpfs/tmpfs_subr.c
840
return ((de->td_cookie & TMPFS_DIRCOOKIE_DUP) != 0);
sys/fs/tmpfs/tmpfs_subr.c
844
tmpfs_dirent_duphead(struct tmpfs_dirent *de)
sys/fs/tmpfs/tmpfs_subr.c
846
return ((de->td_cookie & TMPFS_DIRCOOKIE_DUPHEAD) != 0);
sys/fs/tmpfs/tmpfs_subr.c
850
tmpfs_dirent_init(struct tmpfs_dirent *de, const char *name, u_int namelen)
sys/fs/tmpfs/tmpfs_subr.c
852
de->td_hash = de->td_cookie = tmpfs_dirent_hash(name, namelen);
sys/fs/tmpfs/tmpfs_subr.c
853
memcpy(de->ud.td_name, name, namelen);
sys/fs/tmpfs/tmpfs_subr.c
854
de->td_namelen = namelen;
sys/fs/tmpfs/tmpfs_subr.c
868
const char *name, u_int len, struct tmpfs_dirent **de)
sys/fs/tmpfs/tmpfs_subr.c
882
*de = nde;
sys/fs/tmpfs/tmpfs_subr.c
897
tmpfs_free_dirent(struct tmpfs_mount *tmp, struct tmpfs_dirent *de)
sys/fs/tmpfs/tmpfs_subr.c
901
node = de->td_node;
sys/fs/tmpfs/tmpfs_subr.c
906
if (!tmpfs_dirent_duphead(de) && de->ud.td_name != NULL)
sys/fs/tmpfs/tmpfs_subr.c
907
free(de->ud.td_name, M_TMPFSNAME);
sys/fs/tmpfs/tmpfs_subr.c
908
free(de, M_TMPFSDIR);
sys/fs/tmpfs/tmpfs_vnops.c
1024
struct tmpfs_dirent *de, struct tmpfs_node *tdnode)
sys/fs/tmpfs/tmpfs_vnops.c
1028
TMPFS_NODE_LOCK(de->td_node);
sys/fs/tmpfs/tmpfs_vnops.c
1029
de->td_node->tn_dir.tn_parent = tdnode;
sys/fs/tmpfs/tmpfs_vnops.c
1030
TMPFS_NODE_UNLOCK(de->td_node);
sys/fs/tmpfs/tmpfs_vnops.c
1058
struct tmpfs_dirent *de, *tde;
sys/fs/tmpfs/tmpfs_vnops.c
1142
de = tmpfs_dir_lookup(fdnode, fnode, fcnp);
sys/fs/tmpfs/tmpfs_vnops.c
1149
if (de == NULL) {
sys/fs/tmpfs/tmpfs_vnops.c
1157
MPASS(de->td_node == fnode);
sys/fs/tmpfs/tmpfs_vnops.c
1231
fnode, de, tdnode, tcnp->cn_cred);
sys/fs/tmpfs/tmpfs_vnops.c
1245
tmpfs_rename_set_parent(fdnode, fnode, de, tdnode);
sys/fs/tmpfs/tmpfs_vnops.c
1250
de->td_node = tnode;
sys/fs/tmpfs/tmpfs_vnops.c
127
de = tmpfs_dir_lookup(dnode, NULL, cnp);
sys/fs/tmpfs/tmpfs_vnops.c
1274
tmpfs_dir_detach(fdvp, de);
sys/fs/tmpfs/tmpfs_vnops.c
128
if (de != NULL && de->td_node == NULL)
sys/fs/tmpfs/tmpfs_vnops.c
1288
free(de->ud.td_name, M_TMPFSNAME);
sys/fs/tmpfs/tmpfs_vnops.c
1289
de->ud.td_name = newname;
sys/fs/tmpfs/tmpfs_vnops.c
1290
tmpfs_dirent_init(de, tcnp->cn_nameptr, tcnp->cn_namelen);
sys/fs/tmpfs/tmpfs_vnops.c
130
if (de == NULL || de->td_node == NULL) {
sys/fs/tmpfs/tmpfs_vnops.c
1329
tmpfs_dir_attach(tdvp, de);
sys/fs/tmpfs/tmpfs_vnops.c
1390
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_vnops.c
1423
de = tmpfs_dir_lookup(dnode, node, cnp);
sys/fs/tmpfs/tmpfs_vnops.c
1424
MPASS(TMPFS_DIRENT_MATCHES(de,
sys/fs/tmpfs/tmpfs_vnops.c
1429
tmpfs_dir_detach(dvp, de);
sys/fs/tmpfs/tmpfs_vnops.c
1466
tmpfs_free_dirent(tmp, de);
sys/fs/tmpfs/tmpfs_vnops.c
158
tnode = de->td_node;
sys/fs/tmpfs/tmpfs_vnops.c
1794
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_vnops.c
1800
de = tmpfs_dir_lookup(VP_TO_TMPFS_DIR(dvp), NULL, cnp);
sys/fs/tmpfs/tmpfs_vnops.c
1801
if (de != NULL)
sys/fs/tmpfs/tmpfs_vnops.c
1802
return (de->td_node == NULL ? 0 : EEXIST);
sys/fs/tmpfs/tmpfs_vnops.c
1817
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_vnops.c
1819
for (de = tmpfs_dir_first(tnp, &dc); de != NULL;
sys/fs/tmpfs/tmpfs_vnops.c
1820
de = tmpfs_dir_next(tnp, &dc)) {
sys/fs/tmpfs/tmpfs_vnops.c
1821
if (de->td_node == tn) {
sys/fs/tmpfs/tmpfs_vnops.c
1822
*pde = de;
sys/fs/tmpfs/tmpfs_vnops.c
1833
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_vnops.c
1840
error = tmpfs_vptocnp_dir(tn, tnp, &de);
sys/fs/tmpfs/tmpfs_vnops.c
1843
i -= de->td_namelen;
sys/fs/tmpfs/tmpfs_vnops.c
1847
bcopy(de->ud.td_name, buf + i, de->td_namelen);
sys/fs/tmpfs/tmpfs_vnops.c
1868
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_vnops.c
1908
&de) : 0;
sys/fs/tmpfs/tmpfs_vnops.c
741
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_vnops.c
754
de = tmpfs_dir_lookup(dnode, node, v->a_cnp);
sys/fs/tmpfs/tmpfs_vnops.c
755
MPASS(de != NULL);
sys/fs/tmpfs/tmpfs_vnops.c
766
tmpfs_dir_detach(dvp, de);
sys/fs/tmpfs/tmpfs_vnops.c
773
tmpfs_free_dirent(tmp, de);
sys/fs/tmpfs/tmpfs_vnops.c
791
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_vnops.c
813
cnp->cn_nameptr, cnp->cn_namelen, &de);
sys/fs/tmpfs/tmpfs_vnops.c
820
tmpfs_dir_attach(dvp, de);
sys/fs/tmpfs/tmpfs_vnops.c
847
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_vnops.c
872
de = tmpfs_dir_lookup(VP_TO_TMPFS_DIR(fdvp), NULL, fcnp);
sys/fs/tmpfs/tmpfs_vnops.c
873
if (de == NULL) {
sys/fs/tmpfs/tmpfs_vnops.c
883
error = tmpfs_alloc_vp(mp, de->td_node, LK_EXCLUSIVE | LK_NOWAIT, &nvp);
sys/fs/tmpfs/tmpfs_vnops.c
889
error = tmpfs_alloc_vp(mp, de->td_node, LK_EXCLUSIVE, &nvp);
sys/fs/tmpfs/tmpfs_vnops.c
911
de = tmpfs_dir_lookup(VP_TO_TMPFS_DIR(tdvp), NULL, tcnp);
sys/fs/tmpfs/tmpfs_vnops.c
915
if (de == NULL && *tvpp != NULL) {
sys/fs/tmpfs/tmpfs_vnops.c
923
if (de != NULL) {
sys/fs/tmpfs/tmpfs_vnops.c
925
error = tmpfs_alloc_vp(mp, de->td_node,
sys/fs/tmpfs/tmpfs_vnops.c
935
error = tmpfs_alloc_vp(mp, de->td_node, LK_EXCLUSIVE,
sys/fs/tmpfs/tmpfs_vnops.c
94
struct tmpfs_dirent *de;
sys/fs/tmpfs/tmpfs_vnops.c
967
struct vnode *fvp, struct tmpfs_node *fnode, struct tmpfs_dirent *de,
sys/geom/cache/g_cache.c
434
g_cache_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/cache/g_cache.c
442
error = g_access(cp, dr, dw, de);
sys/geom/concat/g_concat.c
171
g_concat_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/concat/g_concat.c
185
de++;
sys/geom/concat/g_concat.c
187
if ((pp->acr + dr) == 0 && (pp->acw + dw) == 0 && (pp->ace + de) == 0)
sys/geom/concat/g_concat.c
188
de--;
sys/geom/concat/g_concat.c
192
error = g_access(cp1, dr, dw, de);
sys/geom/concat/g_concat.c
209
g_access(cp2, -dr, -dw, -de);
sys/geom/eli/g_eli.c
841
g_eli_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/eli/g_eli.c
859
if (pp->acr + dr > 0 || pp->acw + dw > 0 || pp->ace + de > 0)
sys/geom/eli/g_eli.h
694
int g_eli_access(struct g_provider *pp, int dr, int dw, int de);
sys/geom/gate/g_gate.c
169
g_gate_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/gate/g_gate.c
173
if (dr <= 0 && dw <= 0 && de <= 0)
sys/geom/geom.h
303
int g_std_access(struct g_provider *pp, int dr, int dw, int de);
sys/geom/geom_ccd.c
188
g_ccd_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/geom_ccd.c
194
de += dr;
sys/geom/geom_ccd.c
195
de += dw;
sys/geom/geom_ccd.c
200
error = g_access(cp1, dr, dw, de);
sys/geom/geom_ccd.c
205
g_access(cp2, -dr, -dw, -de);
sys/geom/geom_slice.c
107
if (dr > 0 || dw > 0 || de > 0) {
sys/geom/geom_slice.c
123
if ((pp->ace + de) > 0 && pp2->acw > 0)
sys/geom/geom_slice.c
129
de++;
sys/geom/geom_slice.c
131
if ((cp->acr + dr) == 0 && (cp->acw + dw) == 0 && (cp->ace + de) == 1)
sys/geom/geom_slice.c
132
de--;
sys/geom/geom_slice.c
133
error = g_access(cp, dr, dw, de);
sys/geom/geom_slice.c
93
g_slice_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/geom_subr.c
1153
int dr __unused, int dw __unused, int de __unused)
sys/geom/label/g_label.c
340
int dw __unused, int de __unused)
sys/geom/linux_lvm/g_linux_lvm.c
109
dr, dw, de, pp->name);
sys/geom/linux_lvm/g_linux_lvm.c
113
KASSERT(dr <= 0 && dw <= 0 && de <= 0,
sys/geom/linux_lvm/g_linux_lvm.c
115
if (pp->acr + dr == 0 && pp->acw + dw == 0 && pp->ace + de == 0)
sys/geom/linux_lvm/g_linux_lvm.c
123
de++;
sys/geom/linux_lvm/g_linux_lvm.c
125
if (pp->acr + dr == 0 && pp->acw + dw == 0 && pp->ace + de == 0)
sys/geom/linux_lvm/g_linux_lvm.c
126
de--;
sys/geom/linux_lvm/g_linux_lvm.c
131
error = g_access(c, dr, dw, de);
sys/geom/linux_lvm/g_linux_lvm.c
139
g_access(c2, -dr, -dw, -de);
sys/geom/linux_lvm/g_linux_lvm.c
93
g_llvm_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/mountver/g_mountver.c
244
g_mountver_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/mountver/g_mountver.c
255
if (sc == NULL && dr <= 0 && dw <= 0 && de <= 0)
sys/geom/mountver/g_mountver.c
261
sc->sc_access_e += de;
sys/geom/mountver/g_mountver.c
266
return (g_access(cp, dr, dw, de));
sys/geom/multipath/g_multipath.c
487
g_multipath_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/multipath/g_multipath.c
497
error = (dr > 0 || dw > 0 || de > 0) ? ENXIO : 0;
sys/geom/multipath/g_multipath.c
503
error = g_access(cp, dr, dw, de);
sys/geom/multipath/g_multipath.c
514
sc->sc_opened += dr + dw + de;
sys/geom/multipath/g_multipath.c
527
(void) g_access(cp, -dr, -dw, -de);
sys/geom/nop/g_nop.c
320
g_nop_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/nop/g_nop.c
328
error = g_access(cp, dr, dw, de);
sys/geom/part/g_part.c
2062
g_part_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/part/g_part.c
2067
dw, de));
sys/geom/part/g_part.c
2072
return (g_access(cp, dr, dw, dw + de));
sys/geom/shsec/g_shsec.c
192
g_shsec_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/shsec/g_shsec.c
204
de++;
sys/geom/shsec/g_shsec.c
206
if ((pp->acr + dr) == 0 && (pp->acw + dw) == 0 && (pp->ace + de) == 0)
sys/geom/shsec/g_shsec.c
207
de--;
sys/geom/shsec/g_shsec.c
211
error = g_access(cp1, dr, dw, de);
sys/geom/shsec/g_shsec.c
232
g_access(cp2, -dr, -dw, -de);
sys/geom/stripe/g_stripe.c
200
g_stripe_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/stripe/g_stripe.c
214
de++;
sys/geom/stripe/g_stripe.c
216
if ((pp->acr + dr) == 0 && (pp->acw + dw) == 0 && (pp->ace + de) == 0)
sys/geom/stripe/g_stripe.c
217
de--;
sys/geom/stripe/g_stripe.c
220
error = g_access(cp1, dr, dw, de);
sys/geom/stripe/g_stripe.c
234
g_access(cp2, -dr, -dw, -de);
sys/geom/uzip/g_uzip.c
533
g_uzip_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/uzip/g_uzip.c
546
error = g_access(cp, dr, dw, de);
sys/geom/virstor/g_virstor.c
1398
g_virstor_access(struct g_provider *pp, int dr, int dw, int de)
sys/geom/virstor/g_virstor.c
1412
de++;
sys/geom/virstor/g_virstor.c
1414
if (pp->acr + dr == 0 && pp->acw + dw == 0 && pp->ace + de == 0) {
sys/geom/virstor/g_virstor.c
1415
de--;
sys/geom/virstor/g_virstor.c
1422
error = g_access(c, dr, dw, de);
sys/geom/virstor/g_virstor.c
1442
g_access(c2, -dr, -dw, -de);
sys/kern/kern_conf.c
1325
struct cdev *dev, *ndev, *dl, *de;
sys/kern/kern_conf.c
1351
de = dl = NULL;
sys/kern/kern_conf.c
1365
de = dev;
sys/kern/kern_conf.c
1368
de = dev;
sys/kern/kern_conf.c
1393
else if (de != NULL)
sys/kern/kern_conf.c
1394
LIST_INSERT_AFTER(de, dev, si_clone);
sys/netinet/in_fib_dxr.c
246
range_lookup(struct range_entry_long *rt, struct direct_entry de, uint32_t dst)
sys/netinet/in_fib_dxr.c
254
base = de.base;
sys/netinet/in_fib_dxr.c
259
if (__predict_true(IS_SHORT_FORMAT(de.fragments))) {
sys/netinet/in_fib_dxr.c
260
upperbound = de.fragments & FRAGS_MASK_SHORT;
sys/netinet/in_fib_dxr.c
275
upperbound = de.fragments;
sys/netinet/in_fib_dxr.c
278
if (__predict_false(IS_XL_FORMAT(de.fragments))) {
sys/netinet/in_fib_dxr.c
294
struct direct_entry de; \
sys/netinet/in_fib_dxr.c
298
de = xt[(dt[dst >> (32 - (D))] << (DXR_TRIE_BITS - (D))) \
sys/netinet/in_fib_dxr.c
301
if (__predict_true(de.fragments == FRAGS_MARK_HIT)) \
sys/netinet/in_fib_dxr.c
302
return (de.base); \
sys/netinet/in_fib_dxr.c
303
return (range_lookup(dxr->r, de, dst)); \
sys/netinet/in_fib_dxr.c
330
struct direct_entry de;
sys/netinet/in_fib_dxr.c
334
de = xt[(dt[dst >> dxr->d_shift] << dxr->x_shift) +
sys/netinet/in_fib_dxr.c
336
if (__predict_true(de.fragments == FRAGS_MARK_HIT))
sys/netinet/in_fib_dxr.c
337
return (de.base);
sys/netinet/in_fib_dxr.c
338
return (range_lookup(dxr->r, de, dst));
sys/security/mac/mac_framework.h
150
struct cdev *dev, struct devfs_dirent *de);
sys/security/mac/mac_framework.h
152
int dirnamelen, struct devfs_dirent *de);
sys/security/mac/mac_framework.h
154
struct devfs_dirent *dd, struct devfs_dirent *de);
sys/security/mac/mac_framework.h
157
void mac_devfs_update(struct mount *mp, struct devfs_dirent *de,
sys/security/mac/mac_framework.h
159
void mac_devfs_vnode_associate(struct mount *mp, struct devfs_dirent *de,
sys/security/mac/mac_policy.h
191
struct devfs_dirent *de, struct label *delabel);
sys/security/mac/mac_policy.h
193
char *dirname, int dirnamelen, struct devfs_dirent *de,
sys/security/mac/mac_policy.h
197
struct label *ddlabel, struct devfs_dirent *de,
sys/security/mac/mac_policy.h
202
struct devfs_dirent *de, struct label *delabel,
sys/security/mac/mac_policy.h
205
struct label *mplabel, struct devfs_dirent *de,
sys/security/mac/mac_vfs.c
101
de->de_label = mac_devfs_label_alloc();
sys/security/mac/mac_vfs.c
1026
struct cdev *dev, struct devfs_dirent *de)
sys/security/mac/mac_vfs.c
1029
MAC_POLICY_PERFORM_NOSLEEP(devfs_create_device, cred, mp, dev, de,
sys/security/mac/mac_vfs.c
103
de->de_label = NULL;
sys/security/mac/mac_vfs.c
1030
de->de_label);
sys/security/mac/mac_vfs.c
1035
struct devfs_dirent *dd, struct devfs_dirent *de)
sys/security/mac/mac_vfs.c
1039
dd->de_label, de, de->de_label);
sys/security/mac/mac_vfs.c
1044
struct devfs_dirent *de)
sys/security/mac/mac_vfs.c
1048
dirnamelen, de, de->de_label);
sys/security/mac/mac_vfs.c
205
mac_devfs_destroy(struct devfs_dirent *de)
sys/security/mac/mac_vfs.c
208
if (de->de_label != NULL) {
sys/security/mac/mac_vfs.c
209
mac_devfs_label_free(de->de_label);
sys/security/mac/mac_vfs.c
210
de->de_label = NULL;
sys/security/mac/mac_vfs.c
279
mac_devfs_update(struct mount *mp, struct devfs_dirent *de, struct vnode *vp)
sys/security/mac/mac_vfs.c
282
MAC_POLICY_PERFORM_NOSLEEP(devfs_update, mp, de, de->de_label, vp,
sys/security/mac/mac_vfs.c
287
mac_devfs_vnode_associate(struct mount *mp, struct devfs_dirent *de,
sys/security/mac/mac_vfs.c
292
de, de->de_label, vp, vp->v_label);
sys/security/mac/mac_vfs.c
97
mac_devfs_init(struct devfs_dirent *de)
sys/security/mac_biba/mac_biba.c
1000
struct devfs_dirent *de, struct label *delabel, struct vnode *vp,
sys/security/mac_biba/mac_biba.c
939
struct cdev *dev, struct devfs_dirent *de, struct label *delabel)
sys/security/mac_biba/mac_biba.c
964
struct devfs_dirent *de, struct label *delabel)
sys/security/mac_biba/mac_biba.c
975
struct devfs_dirent *dd, struct label *ddlabel, struct devfs_dirent *de,
sys/security/mac_biba/mac_biba.c
987
biba_devfs_update(struct mount *mp, struct devfs_dirent *de,
sys/security/mac_lomac/mac_lomac.c
1034
struct cdev *dev, struct devfs_dirent *de, struct label *delabel)
sys/security/mac_lomac/mac_lomac.c
1060
struct devfs_dirent *de, struct label *delabel)
sys/security/mac_lomac/mac_lomac.c
1070
struct devfs_dirent *dd, struct label *ddlabel, struct devfs_dirent *de,
sys/security/mac_lomac/mac_lomac.c
1082
lomac_devfs_update(struct mount *mp, struct devfs_dirent *de,
sys/security/mac_lomac/mac_lomac.c
1095
struct devfs_dirent *de, struct label *delabel, struct vnode *vp,
sys/security/mac_mls/mac_mls.c
902
struct cdev *dev, struct devfs_dirent *de, struct label *delabel)
sys/security/mac_mls/mac_mls.c
930
struct devfs_dirent *de, struct label *delabel)
sys/security/mac_mls/mac_mls.c
940
struct devfs_dirent *dd, struct label *ddlabel, struct devfs_dirent *de,
sys/security/mac_mls/mac_mls.c
952
mls_devfs_update(struct mount *mp, struct devfs_dirent *de,
sys/security/mac_mls/mac_mls.c
965
struct devfs_dirent *de, struct label *delabel, struct vnode *vp,
sys/security/mac_stub/mac_stub.c
352
struct cdev *dev, struct devfs_dirent *de, struct label *delabel)
sys/security/mac_stub/mac_stub.c
359
int dirnamelen, struct devfs_dirent *de, struct label *delabel)
sys/security/mac_stub/mac_stub.c
366
struct devfs_dirent *dd, struct label *ddlabel, struct devfs_dirent *de,
sys/security/mac_stub/mac_stub.c
373
stub_devfs_update(struct mount *mp, struct devfs_dirent *de,
sys/security/mac_stub/mac_stub.c
381
struct devfs_dirent *de, struct label *delabel, struct vnode *vp,
sys/security/mac_test/mac_test.c
507
struct cdev *dev, struct devfs_dirent *de, struct label *delabel)
sys/security/mac_test/mac_test.c
519
int dirnamelen, struct devfs_dirent *de, struct label *delabel)
sys/security/mac_test/mac_test.c
529
struct devfs_dirent *dd, struct label *ddlabel, struct devfs_dirent *de,
sys/security/mac_test/mac_test.c
571
struct devfs_dirent *de, struct label *delabel, struct vnode *vp,
sys/ufs/ffs/ffs_softdep.c
8888
struct direct *de;
sys/ufs/ffs/ffs_softdep.c
8899
de = (struct direct *)oldloc;
sys/ufs/ffs/ffs_softdep.c
8909
jmvref = newjmvref(dp, de->d_ino,
sys/x86/iommu/amd_drv.c
659
char *db, *de;
sys/x86/iommu/amd_drv.c
662
for (de = (char *)d + tlen; (char *)d < de;
tests/sys/file/path_test.c
330
struct dirent de;
tests/sys/file/path_test.c
342
getdirentries(pathfd, (char *)&de, sizeof(de), NULL) == -1);
tests/sys/fs/fusefs/readdir.cc
100
EXPECT_EQ(DT_DIR, de->d_type);
tests/sys/fs/fusefs/readdir.cc
101
EXPECT_EQ(sizeof(dotdot), de->d_namlen);
tests/sys/fs/fusefs/readdir.cc
102
EXPECT_EQ(0, strcmp(dotdot, de->d_name));
tests/sys/fs/fusefs/readdir.cc
105
de = readdir(dir);
tests/sys/fs/fusefs/readdir.cc
106
ASSERT_NE(nullptr, de) << strerror(errno);
tests/sys/fs/fusefs/readdir.cc
107
EXPECT_EQ(3ul, de->d_fileno);
tests/sys/fs/fusefs/readdir.cc
108
EXPECT_EQ(DT_DIR, de->d_type);
tests/sys/fs/fusefs/readdir.cc
109
EXPECT_EQ(sizeof(dot), de->d_namlen);
tests/sys/fs/fusefs/readdir.cc
110
EXPECT_EQ(0, strcmp(dot, de->d_name));
tests/sys/fs/fusefs/readdir.cc
124
struct dirent *de;
tests/sys/fs/fusefs/readdir.cc
142
de = readdir(dir);
tests/sys/fs/fusefs/readdir.cc
143
ASSERT_EQ(nullptr, de);
tests/sys/fs/fusefs/readdir.cc
334
struct dirent *de;
tests/sys/fs/fusefs/readdir.cc
354
de = readdir(dir);
tests/sys/fs/fusefs/readdir.cc
355
ASSERT_NE(nullptr, de) << strerror(errno);
tests/sys/fs/fusefs/readdir.cc
356
EXPECT_EQ(4ul, de->d_fileno);
tests/sys/fs/fusefs/readdir.cc
357
EXPECT_EQ(DT_REG, de->d_type);
tests/sys/fs/fusefs/readdir.cc
358
EXPECT_EQ(sizeof(nul), de->d_namlen);
tests/sys/fs/fusefs/readdir.cc
359
EXPECT_EQ(0, strcmp(nul, de->d_name));
tests/sys/fs/fusefs/readdir.cc
375
struct dirent *de;
tests/sys/fs/fusefs/readdir.cc
423
de = readdir(dir);
tests/sys/fs/fusefs/readdir.cc
424
ASSERT_NE(nullptr, de) << strerror(errno);
tests/sys/fs/fusefs/readdir.cc
425
EXPECT_EQ(2 + (ino_t)i, de->d_fileno);
tests/sys/fs/fusefs/readdir.cc
431
de = readdir(dir);
tests/sys/fs/fusefs/readdir.cc
432
ASSERT_NE(nullptr, de) << strerror(errno);
tests/sys/fs/fusefs/readdir.cc
433
EXPECT_EQ(2 + (ino_t)i, de->d_fileno);
tests/sys/fs/fusefs/readdir.cc
437
de = readdir(dir);
tests/sys/fs/fusefs/readdir.cc
438
ASSERT_NE(nullptr, de) << strerror(errno);
tests/sys/fs/fusefs/readdir.cc
439
EXPECT_EQ(130ul, de->d_fileno);
tests/sys/fs/fusefs/readdir.cc
454
struct dirent *de;
tests/sys/fs/fusefs/readdir.cc
474
de = readdir(dir);
tests/sys/fs/fusefs/readdir.cc
475
ASSERT_NE(nullptr, de) << strerror(errno);
tests/sys/fs/fusefs/readdir.cc
476
EXPECT_EQ(4ul, de->d_fileno);
tests/sys/fs/fusefs/readdir.cc
477
EXPECT_EQ(DT_REG, de->d_type);
tests/sys/fs/fusefs/readdir.cc
478
EXPECT_EQ(sizeof(foobar), de->d_namlen);
tests/sys/fs/fusefs/readdir.cc
479
EXPECT_EQ(0, strcmp(foobar, de->d_name));
tests/sys/fs/fusefs/readdir.cc
73
struct dirent *de;
tests/sys/fs/fusefs/readdir.cc
97
de = readdir(dir);
tests/sys/fs/fusefs/readdir.cc
98
ASSERT_NE(nullptr, de) << strerror(errno);
tests/sys/fs/fusefs/readdir.cc
99
EXPECT_EQ(2ul, de->d_fileno);
tools/test/ptrace/scescx.c
104
char de[32];
tools/test/ptrace/scescx.c
126
snprintf(de, sizeof(de), "<%d>", i);
tools/test/ptrace/scescx.c
127
strlcat(c, de, sizeof(c));
usr.bin/diff3/diff3.c
126
static struct diff *de;
usr.bin/diff3/diff3.c
396
de[j].type = DIFF_TYPE1;
usr.bin/diff3/diff3.c
397
de[j].old = d1->old;
usr.bin/diff3/diff3.c
398
de[j].new = d1->new;
usr.bin/diff3/diff3.c
457
de[j].type = DIFF_TYPE3;
usr.bin/diff3/diff3.c
458
de[j].old = d1->old;
usr.bin/diff3/diff3.c
459
de[j].new = d1->new;
usr.bin/diff3/diff3.c
644
de[j].type = difftype;
usr.bin/diff3/diff3.c
645
de[j].old.from = diff->old.from;
usr.bin/diff3/diff3.c
646
de[j].old.to = diff->old.to;
usr.bin/diff3/diff3.c
647
de[j].new.from = diff->new.from;
usr.bin/diff3/diff3.c
648
de[j].new.to = diff->new.to;
usr.bin/diff3/diff3.c
689
new = &de[n].new;
usr.bin/diff3/diff3.c
690
old = &de[n].old;
usr.bin/diff3/diff3.c
693
if (de[n].type == DIFF_TYPE1) {
usr.bin/diff3/diff3.c
742
new = &de[n].new;
usr.bin/diff3/diff3.c
743
old = &de[n].old;
usr.bin/diff3/diff3.c
747
if (de[n].type == DIFF_TYPE2) {
usr.bin/diff3/diff3.c
767
} else if (de[n].type == DIFF_TYPE3) {
usr.bin/diff3/diff3.c
826
new = &de[n].new;
usr.bin/diff3/diff3.c
827
old = &de[n].old;
usr.bin/diff3/diff3.c
833
if (de[n].type == DIFF_TYPE1)
usr.bin/diff3/diff3.c
835
else if (de[n].type == DIFF_TYPE2)
usr.bin/diff3/diff3.c
841
switch (de[n].type) {
usr.bin/diff3/diff3.c
882
if (de[n].type == DIFF_TYPE2)
usr.bin/diff3/diff3.c
920
p = reallocarray(de, newsz, sizeof(*p));
usr.bin/diff3/diff3.c
924
de = p;
usr.sbin/acpi/acpidump/acpi.c
1889
acpi_handle_ivrs_ivhd_devs(ACPI_IVRS_DE_HEADER *d, char *de)
usr.sbin/acpi/acpidump/acpi.c
1900
for (; (char *)d < de; d = (ACPI_IVRS_DE_HEADER *)(db + len)) {
usr.sbin/makefs/ffs.c
1077
struct direct *de;
usr.sbin/makefs/ffs.c
1086
de = (struct direct *)(dbuf->buf + i);
usr.sbin/makefs/ffs.c
1087
reclen = ufs_rw16(de->d_reclen, needswap);
usr.sbin/makefs/ffs.c
1090
ufs_rw32(de->d_ino, needswap),
usr.sbin/makefs/ffs.c
1091
inode_type(DTTOIF(de->d_type)), i, reclen,
usr.sbin/makefs/ffs.c
1092
de->d_namlen, de->d_name);
usr.sbin/makefs/ffs.c
1101
struct direct de, *dp;
usr.sbin/makefs/ffs.c
1109
(void)memset(&de, 0, sizeof(de));
usr.sbin/makefs/ffs.c
1110
de.d_ino = ufs_rw32(node->inode->ino, needswap);
usr.sbin/makefs/ffs.c
1111
de.d_type = IFTODT(node->type);
usr.sbin/makefs/ffs.c
1112
de.d_namlen = (uint8_t)strlen(name);
usr.sbin/makefs/ffs.c
1113
strcpy(de.d_name, name);
usr.sbin/makefs/ffs.c
1114
reclen = DIRSIZ_SWAP(0, &de, needswap);
usr.sbin/makefs/ffs.c
1115
de.d_reclen = ufs_rw16(reclen, needswap);
usr.sbin/makefs/ffs.c
1127
ufs_rw32(de.d_ino, needswap), de.d_type, reclen,
usr.sbin/makefs/ffs.c
1128
de.d_namlen, de.d_name);
usr.sbin/makefs/ffs.c
1144
memcpy(dp, &de, reclen);
usr.sbin/makefs/msdos.c
245
struct denode *de;
usr.sbin/makefs/msdos.c
246
if ((de = msdosfs_mkdire(pbuf, dir, cur)) == NULL) {
usr.sbin/makefs/msdos.c
250
if (msdos_populate_dir(pbuf, de, cur->child, cur,