summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs/devfs.h
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2010-06-09 15:29:12 +0000
committerjh <jh@FreeBSD.org>2010-06-09 15:29:12 +0000
commitbc3fa141faa10d927d568bb1f958d736c5f6edcd (patch)
treeb8604c4f70801d88d6a6ab13c200f7580f2ed963 /sys/fs/devfs/devfs.h
parent0556dc425fb58712ba8af406ed72bf728f01f58d (diff)
downloadFreeBSD-src-bc3fa141faa10d927d568bb1f958d736c5f6edcd.zip
FreeBSD-src-bc3fa141faa10d927d568bb1f958d736c5f6edcd.tar.gz
Add a new function devfs_parent_dirent() for resolving devfs parent
directory entry. Use the new function in devfs_fqpn(), devfs_lookupx() and devfs_vptocnp() instead of manually resolving the parent entry. Reviewed by: kib
Diffstat (limited to 'sys/fs/devfs/devfs.h')
-rw-r--r--sys/fs/devfs/devfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/devfs/devfs.h b/sys/fs/devfs/devfs.h
index 524bec8..a50a7b0 100644
--- a/sys/fs/devfs/devfs.h
+++ b/sys/fs/devfs/devfs.h
@@ -180,6 +180,7 @@ void devfs_populate (struct devfs_mount *dm);
void devfs_cleanup (struct devfs_mount *dm);
void devfs_unmount_final(struct devfs_mount *mp);
struct devfs_dirent *devfs_newdirent (char *name, int namelen);
+struct devfs_dirent *devfs_parent_dirent(struct devfs_dirent *de);
struct devfs_dirent *devfs_vmkdir (struct devfs_mount *, char *name, int namelen, struct devfs_dirent *dotdot, u_int inode);
struct devfs_dirent *devfs_find (struct devfs_dirent *dd, const char *name, int namelen);
OpenPOWER on IntegriCloud