• Home
  • Raw
  • Download

Lines Matching +full:multi +full:- +full:attr

5 :Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
11 Part of the difficulty in understanding the driver model - and the kobject
12 abstraction upon which it is built - is that there is no obvious starting
15 easier, we'll take a multi-pass approach, starting with vague terms and
19 - A kobject is an object of type struct kobject. Kobjects have a name
32 - A ktype is the type of object that embeds a kobject. Every structure
36 - A kset is a group of kobjects. These kobjects can be of the same ktype
45 We'll look at how to create and manipulate all of these types. A bottom-up
54 a larger, domain-specific object. To this end, kobjects will be found
56 object-oriented terms, kobjects can be seen as a top-level, abstract class
60 direct expression of inheritance, so other techniques - such as structure
61 embedding - must be used.
98 For convenience, programmers often define a simple macro for **back-casting**
132 kobj->kset must be assigned before calling kobject_add(). If a kset is
192 The low-level functions for manipulating a kobject's reference counts are::
207 the kernel will contain a run-time check for kobjects that are created
213 file Documentation/core-api/kref.rst in the Linux kernel source tree.
231 int sysfs_create_file(struct kobject *kobj, const struct attribute *attr);
241 See the example module, ``samples/kobject/kobject-example.c`` for an
331 - It serves as a bag containing a group of objects. A kset can be used by
334 - A kset is also a subdirectory in sysfs, where the associated kobjects
336 set up to be the parent of other kobjects; the top-level directories of
339 - Ksets can support the "hotplugging" of kobjects and influence how
342 In object-oriented terms, "kset" is the top-level container class; ksets
369 ``samples/kobject/kset-example.c`` file in the kernel tree.
415 If you need to do a two-stage delete of the kobject (say you are not
433 example programs ``samples/kobject/{kobject-example.c,kset-example.c}``,