1
0
Fork 0
remarkable-linux/drivers/lightnvm
Javier González 9a69b0ed62 lightnvm: allow targets to use sysfs
In order to register through the sysfs interface, a driver needs to know
its kobject. On a disk structure, this happens when the partition
information is added (device_add_disk), which for lightnvm takes place
after the target has been initialized. This means that on target
initialization, the kboject has not been created yet.

This patch adds a target function to let targets initialize their own
kboject as a child of the disk kobject.

Signed-off-by: Javier González <javier@cnexlabs.com>
Added exit typedef and passed gendisk instead of void pointer for exit.
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2017-01-31 08:32:13 -07:00
..
Kconfig lightnvm: merge gennvm with core 2017-01-31 08:32:13 -07:00
Makefile lightnvm: merge gennvm with core 2017-01-31 08:32:13 -07:00
core.c lightnvm: allow targets to use sysfs 2017-01-31 08:32:13 -07:00
rrpc.c lightnvm: use end_io callback instead of instance 2017-01-31 08:32:13 -07:00
rrpc.h lightnvm: use end_io callback instead of instance 2017-01-31 08:32:13 -07:00