device_add_disk(9)

device_add_disk9

Add partitioning information to kernel list

Usage

void device_add_disk(struct device * parent, struct gendisk * disk);

Arguments

parent

parent device for the disk

disk

per-device partitioning information

Overview

This function registers the partitioning information in disk with the kernel.

FIXME: error handling

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.