summaryrefslogtreecommitdiffstats
path: root/sys/sys/conf.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-09-19 10:28:44 +0000
committerphk <phk@FreeBSD.org>2000-09-19 10:28:44 +0000
commit6023f979709dc325fe614123710e7faa12ba79f9 (patch)
treec347201698c5958ef6e577c73bf7f710c905f8db /sys/sys/conf.h
parentbc8d9c4814a55bf29cd2c010b5a0a58a79337d46 (diff)
downloadFreeBSD-src-6023f979709dc325fe614123710e7faa12ba79f9.zip
FreeBSD-src-6023f979709dc325fe614123710e7faa12ba79f9.tar.gz
Rename lminor() to dev2unit(). This function gives a linear unit number
which hides the 'hole' in the minor bits. Introduce unit2minor() to do the reverse operation. Fix some some make_dev() calls which didn't use UID_* or GID_* macros. Kill the v_hashchain alias macro, it hides the real relationship. Introduce experimental SI_CHEAPCLONE flag set it on cloned bpfs.
Diffstat (limited to 'sys/sys/conf.h')
-rw-r--r--sys/sys/conf.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 48403b5..8c0a7d1 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -56,6 +56,7 @@ struct specinfo {
#define SI_STASHED 0x0001 /* created in stashed storage */
#define SI_ALIAS 0x0002 /* carrier of alias name */
#define SI_NAMED 0x0004 /* make_dev{_alias} has been called */
+#define SI_CHEAPCLONE 0x0008 /* can be removed_dev'ed when vnode reclaims */
struct timespec si_atime;
struct timespec si_ctime;
struct timespec si_mtime;
@@ -93,7 +94,6 @@ struct specinfo {
/*
* Exported shorthand
*/
-#define v_hashchain v_rdev->si_hlist
#define v_specmountpoint v_rdev->si_mountpoint
/*
@@ -291,7 +291,8 @@ int iszerodev __P((dev_t dev));
dev_t makebdev __P((int maj, int min));
dev_t make_dev __P((struct cdevsw *devsw, int minor, uid_t uid, gid_t gid, int perms, char *fmt, ...)) __printflike(6, 7);
dev_t make_dev_alias __P((dev_t pdev, char *fmt, ...)) __printflike(2, 3);
-int lminor __P((dev_t dev));
+int dev2unit __P((dev_t dev));
+int unit2minor __P((int unit));
void setconf __P((void));
dev_t getdiskbyname(char *name);
OpenPOWER on IntegriCloud