diff options
| author | Marc G. Fournier <scrappy@FreeBSD.org> | 1996-04-02 04:53:05 +0000 |
|---|---|---|
| committer | Marc G. Fournier <scrappy@FreeBSD.org> | 1996-04-02 04:53:05 +0000 |
| commit | 2523e82c8bc9aee960ab02050910e9df594b9fa8 (patch) | |
| tree | 9c46f74561aa1d038217a20ce449bd1b55d01830 /sys/miscfs/devfs | |
| parent | ecd87fe6c3203970dc0c7bedf93eec6ac73a669e (diff) | |
Notes
Diffstat (limited to 'sys/miscfs/devfs')
| -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 62ad9b6c74ce..65e5d0a7d785 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; |
