sys/vfs/devfs/devfs_helper.c
void
devfs_clone_bitmap_put(struct devfs_bitmap *bitmap, int unit)
{
	int chunk;

	devfs_config();

	chunk = unit / (sizeof(u_long) * 8);
	unit -= chunk * (sizeof(u_long) * 8);

	if (chunk >= bitmap->chunks)
		return;
	bitmap->bitmap[chunk] |= (1 << unit);
}
/*
 * Deallocate a unit number.  We must synchronize any destroy_dev()'s
 * the device called before we clear the bitmap bit to avoid races
 * against a new clone.
 */
Deallocate a unit number.  We must synchronize any destroy_dev()'s
the device called before we clear the bitmap bit to avoid races
against a new clone.
Deallocate a unit number . We must synchronize any destroy_dev () ' s the device called before we clear the bitmap bit to avoid races against a new clone .
void
devfs_clone_bitmap_put(struct devfs_bitmap *bitmap, int unit)
{
	int chunk;
	devfs_config();
	chunk = unit / (sizeof(u_long) * 8);
	unit -= chunk * (sizeof(u_long) * 8);
	if (chunk >= bitmap->chunks)
		return;
	bitmap->bitmap[chunk] |= (1 << unit);
}
void devfs_clone_bitmap_put ( struct devfs_bitmap * bitmap , int unit ) { int chunk ; devfs_config ( ) ; chunk = unit / ( sizeof ( u_long ) * 8 ) ; unit -= chunk * ( sizeof ( u_long ) * 8 ) ; if ( chunk >= bitmap -> chunks ) return ; bitmap -> bitmap [ chunk ] |= ( 1 << unit ) ; }
Deallocate a unit number.
Deallocate a unit number .