sys/vfs/devfs/devfs_helper.c
int
devfs_clone_bitmap_get(struct devfs_bitmap *bitmap, int limit)
{
	int unit;

	unit = devfs_clone_bitmap_fff(bitmap);
	if ((limit > 0) && (unit > limit))
		return -1;
	devfs_clone_bitmap_set(bitmap, unit);

	return unit;
}
/*
 * Allocate a unit number for a device
 */
Allocate a unit number for a device
Allocate a unit number for a device
int
devfs_clone_bitmap_get(struct devfs_bitmap *bitmap, int limit)
{
	int unit;
	unit = devfs_clone_bitmap_fff(bitmap);
	if ((limit > 0) && (unit > limit))
		return -1;
	devfs_clone_bitmap_set(bitmap, unit);
	return unit;
}
int devfs_clone_bitmap_get ( struct devfs_bitmap * bitmap , int limit ) { int unit ; unit = devfs_clone_bitmap_fff ( bitmap ) ; if ( ( limit > 0 ) && ( unit > limit ) ) return -1 ; devfs_clone_bitmap_set ( bitmap , unit ) ; return unit ; }
Allocate a unit number for a device
Allocate a unit number for a device