Ejemplo n.º 1
0
int
xfs_uninstall_device(void)
{
    int i;
    struct xfs_channel *chan;

    for (i = 0; i < NXFS; i++) {
	chan = &xfs_channel[i];
	if (chan->status & CHANNEL_OPENED)
	    xfs_devclose(makedev(0, i), 0, 0, NULL);
    }

    return 0;
}
Ejemplo n.º 2
0
int
xfs_uninstall_device(void)
{
	int i;
	struct xfs_channel *chan;
	int ret = 0;
	
	for (i = 0; i < NNNPFS; i++) {
		chan = &xfs_channel[i];
		if (chan->status & CHANNEL_OPENED)
			xfs_devclose(makedev(0, i), 0, 0, NULL);
	}
	
	NNPFSDEB(XDEBLKM, ("xfs_uninstall_device error %d\n", ret));
	return ret;
}