示例#1
0
文件: devio.c 项目: davidgiven/FUZIX
int bdwrite(bufptr bp)
{
	uint16_t dev = bp->bf_dev;
	validchk(dev, PANIC_BDW);
	bdsetup(bp);
	return ((*dev_tab[major(dev)].dev_write) (minor(dev), 0, 0));
}
示例#2
0
文件: devio.c 项目: davidgiven/FUZIX
int bdread(bufptr bp)
{
	uint16_t dev = bp->bf_dev;
	validchk(dev, PANIC_BDR);
	bdsetup(bp);
	return ((*dev_tab[major(dev)].dev_read) (minor(dev), 0, 0));
}
示例#3
0
文件: devio.c 项目: 8l/FUZIX
int d_close(uint16_t dev)
{
	validchk(dev, PANIC_DCL);
        bdrop(dev);
	return (*dev_tab[major(dev)].dev_close) (minor(dev));
}
示例#4
0
文件: devio.c 项目: 8l/FUZIX
int cdwrite(uint16_t dev, uint8_t flag)
{
	validchk(dev, PANIC_CDW);
	return ((*dev_tab[major(dev)].dev_write) (minor(dev), 1, flag));
}
示例#5
0
文件: devio.c 项目: 8l/FUZIX
int cdread(uint16_t dev, uint8_t flag)
{
	validchk(dev, PANIC_CDR);
	return ((*dev_tab[major(dev)].dev_read) (minor(dev), 1, flag));
}