Subject: CVS commit: [gehenna-devsw] syssrc/sys/kern
To: None <source-changes@netbsd.org>
From: MAEKAWA Masahide <gehenna@netbsd.org>
List: source-changes
Date: 05/16/2002 06:39:14
Module Name:	syssrc
Committed By:	gehenna
Date:		Thu May 16 03:39:14 UTC 2002

Added Files:
	syssrc/sys/kern [gehenna-devsw]: subr_devsw.c

Log Message:
Add devsw APIs:

int devsw_attach(const char *devname, const struct bdevsw *bdev, int *bmajor,
		 const struct cdevsw *cdev, int *cmajor);
void devsw_detach(const struct bdevsw *bdev, const struct cdevsw *cdev);

const struct bdevsw *bdevsw_lookup(dev_t dev);
const struct cdevsw *cdevsw_lookup(dev_t dev);
int bdevsw_lookup_major(const struct bdevsw *bdev);
int cdevsw_lookup_major(const struct cdevsw *cdev);

const char *devsw_blk2name(int bmajor);
int devsw_name2blk(const char *name, char *devname, size_t devnamelen);
dev_t devsw_chr2blk(dev_t cdev);
dev_t devsw_blk2chr(dev_t bdev);


To generate a diff of this commit:
cvs rdiff -r0 -r1.1.2.1 syssrc/sys/kern/subr_devsw.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.