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
..
2016-12-14 20:42:45 -08:00
2016-12-16 11:23:34 -08:00
2016-11-17 23:19:00 +01:00
2016-12-19 08:16:26 -08:00
2016-12-14 10:49:33 -08:00
2016-12-15 16:03:25 -08:00
2016-12-13 11:10:36 -08:00
2016-12-15 12:46:48 -08:00
2016-12-22 22:58:37 -05:00
2016-10-19 14:34:36 -04:00
2017-01-27 09:01:45 -07:00
2016-12-08 13:31:11 -05:00
2016-12-17 21:27:44 -05:00
2016-10-25 11:08:28 +08:00
2016-12-08 16:37:33 -08:00
2016-12-13 11:18:24 -08:00
2016-10-07 18:46:30 -07:00
2016-12-05 19:01:16 -05:00
2016-12-13 11:42:18 -08:00
2016-12-13 11:42:18 -08:00
2016-10-28 08:48:16 -06:00
2016-11-25 10:15:13 -08:00
2016-12-05 19:01:16 -05:00
2016-12-15 13:49:34 -08:00
2016-12-25 17:21:22 +01:00
2016-12-25 17:21:22 +01:00
2016-11-30 14:36:01 +11:00
2016-12-14 20:12:43 -08:00
2016-12-16 09:26:42 -08:00
2016-12-12 18:55:06 -08:00
2016-12-25 17:21:23 +01:00
2016-12-06 11:05:46 +01:00
2016-12-16 00:13:41 +02:00
2016-11-26 11:18:02 -08:00
2016-12-08 13:18:35 -05:00
2016-11-16 18:32:02 -05:00
2016-12-19 17:29:44 -05:00
2016-12-12 18:55:07 -08:00
2016-11-10 17:03:35 +01:00
2016-12-06 10:17:03 +02:00
2016-12-15 12:46:48 -08:00
2016-12-15 12:46:48 -08:00
2016-12-08 14:21:47 -05:00
2016-10-31 16:18:30 -04:00
2016-10-14 11:36:59 -07:00
2016-12-13 11:42:18 -08:00
2016-12-13 11:42:18 -08:00
2016-12-13 16:07:55 -08:00
2016-11-15 16:34:27 -08:00
2016-10-31 15:45:18 -07:00
2016-12-25 17:21:22 +01:00
2016-10-05 18:23:36 -04:00
2016-12-25 17:21:22 +01:00
2016-12-09 22:12:21 -05:00
2016-12-12 18:55:08 -08:00
2016-12-25 17:21:22 +01:00