Home
last modified time | relevance | path

Searched refs:RAMDISK_MAJOR (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/include/linux/
Droot_dev.h12 Root_RAM0 = MKDEV(RAMDISK_MAJOR, 0),
13 Root_RAM1 = MKDEV(RAMDISK_MAJOR, 1),
/Linux-v5.4/drivers/block/
Dbrd.c348 MODULE_ALIAS_BLOCKDEV_MAJOR(RAMDISK_MAJOR);
397 disk->major = RAMDISK_MAJOR; in brd_alloc()
493 if (register_blkdev(RAMDISK_MAJOR, "ramdisk")) in brd_init()
517 blk_register_region(MKDEV(RAMDISK_MAJOR, 0), 1UL << MINORBITS, in brd_init()
528 unregister_blkdev(RAMDISK_MAJOR, "ramdisk"); in brd_init()
541 blk_unregister_region(MKDEV(RAMDISK_MAJOR, 0), 1UL << MINORBITS); in brd_exit()
542 unregister_blkdev(RAMDISK_MAJOR, "ramdisk"); in brd_exit()
/Linux-v5.4/include/uapi/linux/
Dmajor.h12 #define RAMDISK_MAJOR 1 macro
/Linux-v5.4/init/
Ddo_mounts_rd.c290 create_dev("/dev/ram", MKDEV(RAMDISK_MAJOR, n)); in rd_load_disk()