summaryrefslogtreecommitdiffstats
path: root/sys/sys/conf.h
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>2011-06-14 16:29:43 +0000
committergibbs <gibbs@FreeBSD.org>2011-06-14 16:29:43 +0000
commit9d45c190c83f9be0326790e82d82a5eb1ce395c7 (patch)
treeb5837253e7d00c27355ed10d509f55e980e44161 /sys/sys/conf.h
parent896ba7687e4e78368fc05e758515c9804ebca9f0 (diff)
downloadFreeBSD-src-9d45c190c83f9be0326790e82d82a5eb1ce395c7.zip
FreeBSD-src-9d45c190c83f9be0326790e82d82a5eb1ce395c7.tar.gz
sys/sys/conf.h:
sys/kern/kern_conf.c: Add make_dev_physpath_alias(). This interface takes the parent cdev of the alias, an old alias cdev (if any) to replace with the newly created alias, and the physical path string. The alias is visiable as a symlink to the parent, with the same name as the parent, rooted at physpath in devfs. Note: make_dev_physpath_alias() has hard coded knowledge of the Solaris style prefix convention for physical path data, "id1,". In the future, I expect the convention to change to allow "physical path quality" to be reported in the prefix. For example, a physical path based on NewBus topology would be of "lower quality" than a physical path reported by a device enclosure. Sponsored by: Spectra Logic Corporation
Diffstat (limited to 'sys/sys/conf.h')
-rw-r--r--sys/sys/conf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 0c7ed41..08e1582 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -280,6 +280,9 @@ struct cdev *make_dev_alias(struct cdev *_pdev, const char *_fmt, ...)
__printflike(2, 3);
int make_dev_alias_p(int _flags, struct cdev **_cdev, struct cdev *_pdev,
const char *_fmt, ...) __printflike(4, 5);
+int make_dev_physpath_alias(int _flags, struct cdev **_cdev,
+ struct cdev *_pdev, struct cdev *_old_alias,
+ const char *_physpath);
void dev_lock(void);
void dev_unlock(void);
void setconf(void);
OpenPOWER on IntegriCloud