samples/kobject/kset-example.c

Source file repositories/reference/linux-study-clean/samples/kobject/kset-example.c

File Facts

System
Linux kernel
Corpus path
samples/kobject/kset-example.c
Extension
.c
Size
7706 bytes
Lines
306
Domain
Support Tooling And Documentation
Bucket
samples
Inferred role
Support Tooling And Documentation: exported/initcall integration point
Status
integration implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

module_init(example_init);
module_exit(example_exit);
MODULE_DESCRIPTION("Sample kset and ktype implementation");
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Greg Kroah-Hartman <greg@kroah.com>");

Annotation

Implementation Notes