On Thu, Apr 27, 2017 at 9:37 PM, Mika Penttilä
wrote:
> Hi,
>
> Just wondering the pmem struct device vs gendisk lifetimes.. from
> pmem_attach_disk():
>
> device_add_disk(dev, disk);
> devm_add_action_or_reset(dev, pmem_release_disk, disk);
>
>
> where:
> static void pmem_release
Hi,
Just wondering the pmem struct device vs gendisk lifetimes.. from
pmem_attach_disk():
device_add_disk(dev, disk);
devm_add_action_or_reset(dev, pmem_release_disk, disk);
where:
static void pmem_release_disk(void *disk)
{
del_gendisk(disk);
put_disk(disk);
}
2 matches
Mail list logo