kernels/linux-2.4.0/fs/partitions/check.c
/*
 * This function will re-read the partition tables for a given device,
 * and set things back up again.  There are some important caveats,
 * however.  You must ensure that no one is using the device, and no one
 * can start using the device while this function is being executed.
 *
 * Much of the cleanup from the old partition tables should have already been
 * done
 */
This function will re-read the partition tables for a given device,
and set things back up again.  There are some important caveats,
however.  You must ensure that no one is using the device, and no one
can start using the device while this function is being executed.

Much of the cleanup from the old partition tables should have already been
done
This function will re - read the partition tables for a given device and set things back up again . There are some important caveats however . You must ensure that no one is using the device and no one can start using the device while this function is being executed . Much of the cleanup from the old partition tables should have already been done
void register_disk(struct gendisk *gdev, kdev_t dev, unsigned minors,
	struct block_device_operations *ops, long size)
{
	if (!gdev)
		return;
	grok_partitions(gdev, MINOR(dev)>>gdev->minor_shift, minors, size);
}
void register_disk ( struct gendisk * gdev , kdev_t dev , unsigned minors , struct block_device_operations * ops , long size ) { if ( ! gdev ) return ; grok_partitions ( gdev , MINOR ( dev ) >> gdev -> minor_shift , minors , size ) ; }
This function will re-read the partition tables for a given device,
 and set things back up again.
This function will re - read the partition tables for a given device and set things back up again .