summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs/devfs.h
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2010-09-21 16:49:02 +0000
committerjh <jh@FreeBSD.org>2010-09-21 16:49:02 +0000
commit4c422ff8ec5bd68c8f5702007f8750521364ad9d (patch)
treeb3677447b6873dc8b5cbf443139979b434d89c05 /sys/fs/devfs/devfs.h
parent524cb00f17e42971cf96e8296f984f02cb0fa592 (diff)
downloadFreeBSD-src-4c422ff8ec5bd68c8f5702007f8750521364ad9d.zip
FreeBSD-src-4c422ff8ec5bd68c8f5702007f8750521364ad9d.tar.gz
Modify devfs_fqpn() for future use in devfs path reference counting
code: - Accept devfs_mount and devfs_dirent as the arguments instead of a vnode. This generalizes the function so that it can be used from contexts where vnode references are not available. - Accept NULL cnp argument. No '/' will be appended, if a NULL cnp is provided. - Make the function global and add its prototype to devfs.h. Reviewed by: kib
Diffstat (limited to 'sys/fs/devfs/devfs.h')
-rw-r--r--sys/fs/devfs/devfs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/fs/devfs/devfs.h b/sys/fs/devfs/devfs.h
index 87549d2..433fa0d 100644
--- a/sys/fs/devfs/devfs.h
+++ b/sys/fs/devfs/devfs.h
@@ -122,6 +122,8 @@ struct devfs_rule {
MALLOC_DECLARE(M_DEVFS);
#endif
+struct componentname;
+
struct devfs_dirent {
struct cdev_priv *de_cdp;
int de_inode;
@@ -178,6 +180,8 @@ void devfs_rules_cleanup (struct devfs_mount *dm);
int devfs_rules_ioctl(struct devfs_mount *dm, u_long cmd, caddr_t data, struct thread *td);
int devfs_allocv(struct devfs_dirent *de, struct mount *mp, int lockmode,
struct vnode **vpp);
+char *devfs_fqpn(char *, struct devfs_mount *, struct devfs_dirent *,
+ struct componentname *);
void devfs_delete(struct devfs_mount *dm, struct devfs_dirent *de, int flags);
void devfs_dirent_free(struct devfs_dirent *de);
void devfs_populate (struct devfs_mount *dm);
OpenPOWER on IntegriCloud