Dmitry Torokhov
2f0157f13f
char_dev: pin parent kobject
...
In certain cases (for example when a cdev structure is embedded into
another object whose lifetime is controlled by a separate kobject) it is
beneficial to tie lifetime of another object to the lifetime of
character device so that related object is not freed until after
char_dev object is freed.
To achieve this let's pin kobject's parent when doing cdev_add() and
unpin when last reference to cdev structure is being released.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-10-22 08:50:37 +03:00
..
2012-10-12 09:59:23 +09:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-11 10:21:16 +09:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-13 13:23:39 -07:00
2012-10-09 23:33:55 -04:00
2012-10-14 13:39:34 -07:00
2012-10-02 21:35:55 -04:00
2012-10-02 11:11:09 -07:00
2012-10-02 13:38:27 -07:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-12 10:52:03 +09:00
2012-10-09 23:23:53 +02:00
2012-10-16 18:12:38 -07:00
2012-10-09 16:22:17 +09:00
2012-10-09 23:33:38 -04:00
2012-10-02 20:25:04 -07:00
2012-10-09 16:22:17 +09:00
2012-10-09 23:33:55 -04:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-10 11:15:20 +09:00
2012-10-09 23:33:38 -04:00
2012-10-09 22:34:52 +02:00
2012-10-09 16:22:39 +09:00
2012-10-09 23:33:55 -04:00
2012-10-08 06:36:39 +09:00
2012-10-09 15:04:25 +01:00
2012-10-03 08:48:21 -07:00
2012-10-17 10:14:14 -04:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-13 10:53:54 +09:00
2012-10-09 18:35:22 -04:00
2012-10-09 16:22:17 +09:00
2012-10-02 20:25:04 -07:00
2012-10-09 16:22:17 +09:00
2012-10-06 03:05:31 +09:00
2012-10-02 21:35:55 -04:00
2012-10-19 14:32:10 -07:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-16 18:12:38 -07:00
2012-10-09 23:33:55 -04:00
2012-10-02 21:35:55 -04:00
2012-10-02 20:25:04 -07:00
2012-10-09 23:33:39 -04:00
2012-10-09 16:22:17 +09:00
2012-10-04 09:14:01 -07:00
2012-10-09 23:33:39 -04:00
2012-10-09 23:33:55 -04:00
2012-10-06 03:05:16 +09:00
2012-10-10 12:02:25 +09:00
2012-10-10 12:02:25 +09:00
2012-10-06 03:05:16 +09:00
2012-10-11 09:04:23 +09:00
2012-10-08 06:36:39 +09:00
2012-10-22 08:50:37 +03:00
2012-10-06 03:05:17 +09:00
2012-10-02 20:25:04 -07:00
2012-10-12 20:14:55 -04:00
2012-10-16 13:36:50 -04:00
2012-10-06 03:05:15 +09:00
2012-10-02 20:25:04 -07:00
2012-10-06 03:05:00 +09:00
2012-10-12 20:15:09 -04:00
2012-10-09 15:52:31 +09:00
2012-10-10 01:15:44 -04:00
2012-10-09 23:33:38 -04:00
2012-10-12 20:14:55 -04:00
2012-10-12 10:46:03 +09:00
2012-10-09 16:22:39 +09:00
2012-10-12 20:15:09 -04:00
2012-10-06 03:05:15 +09:00
2012-10-09 18:35:22 -04:00
2012-10-06 03:05:15 +09:00
2012-10-12 20:15:10 -04:00
2012-10-12 20:14:55 -04:00
2012-10-12 20:15:09 -04:00
2012-10-02 21:35:55 -04:00
2012-10-02 21:35:55 -04:00
2012-10-02 20:25:04 -07:00
2012-10-09 23:33:39 -04:00
2012-10-12 13:16:48 -07:00
2012-10-18 12:35:58 -07:00