diff options
author | scrappy <scrappy@FreeBSD.org> | 1996-04-02 04:53:05 +0000 |
---|---|---|
committer | scrappy <scrappy@FreeBSD.org> | 1996-04-02 04:53:05 +0000 |
commit | 52b6bf2e186c7b852c3118660db1dd4063db4177 (patch) | |
tree | 9c46f74561aa1d038217a20ce449bd1b55d01830 /sys/miscfs | |
parent | 99d214961d43f3ba8b5fa76e3cb1aec55b5d2387 (diff) | |
download | FreeBSD-src-52b6bf2e186c7b852c3118660db1dd4063db4177.zip FreeBSD-src-52b6bf2e186c7b852c3118660db1dd4063db4177.tar.gz |
Made the src code match the man page.
Removed dev_link() and dev_linkf(), replacing dev_linkf() with devfs_link()
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/devfs/devfs_tree.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/sys/miscfs/devfs/devfs_tree.c b/sys/miscfs/devfs/devfs_tree.c index 62ad9b6..65e5d0a 100644 --- a/sys/miscfs/devfs/devfs_tree.c +++ b/sys/miscfs/devfs/devfs_tree.c @@ -2,7 +2,7 @@ /* * Written by Julian Elischer (julian@DIALix.oz.au) * - * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.19 1996/03/25 21:56:59 julian Exp $ + * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.20 1996/03/28 14:32:27 scrappy Exp $ */ #include "param.h" @@ -996,33 +996,7 @@ void *devfs_add_devsw(char *path, * a link to the already created device given as an arg.. * * this function is exported.. see sys/devfsext.h * \***********************************************************************/ -void *dev_link(char *path, char *name, void *original) -{ - devnm_p new_dev; - devnm_p orig = (devnm_p) original; - dn_p dirnode; /* devnode for parent directory */ - int retval; - int major ; - union typeinfo by; - - DBPRINT(("dev_add\n")); - retval = dev_finddir(path,NULL,1,&dirnode); - if (retval) return 0; - /* - * The DEV_CDEV below is not used other than it must NOT be DEV_DIR - * the correctness of original shuold be checked.. - */ - if( dev_add_name(name, dirnode, NULL, orig->dnp, &new_dev)) - return NULL; - return new_dev; -} - -/***********************************************************************\ -* Add the named device entry into the given directory, and make it * -* a link to the already created device given as an arg.. * -* this function is exported.. see sys/devfsext.h * -\***********************************************************************/ -void *dev_linkf(void *original, char *fmt, ...) +void *devfs_link(void *original, char *fmt, ...) { devnm_p new_dev; devnm_p orig = (devnm_p) original; |