Lines Matching refs:configfs
3 //! configfs interface: Userspace-driven Kernel Object Configuration
5 //! configfs is an in-memory pseudo file system for configuration of kernel
7 //! configfs.
9 //! This module does not support the following configfs features:
18 //! C header: [`include/linux/configfs.h`](srctree/include/linux/configfs.h)
25 //! use kernel::configfs;
34 //! config: configfs::Subsystem<Configuration>,
39 //! pr_info!("Rust configfs sample (init)\n");
42 //! container: configfs::Subsystem<Configuration>,
51 //! config <- configfs::Subsystem::new(
75 //! impl configfs::AttributeOperations<0> for Configuration {
87 //! impl configfs::AttributeOperations<1> for Configuration {
109 //! [C documentation]: srctree/Documentation/filesystems/configfs.rst
123 /// A configfs subsystem.
125 /// This is the top level entrypoint for a configfs hierarchy. To register
126 /// with configfs, embed a field of this type into your kernel module struct.
144 /// The subsystem will appear in configfs as a directory name given by
199 /// Users of the configfs API should not need to implement this trait.
240 /// A configfs group.
242 /// To add a subgroup to configfs, pass this type as `ctype` to
300 /// If `this` does not represent the root group of a configfs subsystem,
334 /// If `this` does not represent the root group of a configfs subsystem,
379 /// If `this` does not represent the root group of a configfs subsystem,
482 /// Operations implemented by configfs groups that can create subgroups.
503 /// Prepares the group for removal from configfs.
506 /// configfs.
508 /// Implementations can use this method to do house keeping before configfs drops its
518 /// A configfs attribute.
520 /// An attribute appears as a file in configfs, inside a folder that represent
542 /// If `item` does not represent the root group of a configfs subsystem,
575 /// If `item` does not represent the root group of a configfs subsystem,
795 /// Define a list of configfs attributes statically.
801 /// container: configfs::Subsystem<Configuration>,
815 /// static CONFIGURATION_MESSAGE_ATTR: kernel::configfs::Attribute<
820 /// kernel::configfs::Attribute::new({
836 /// static CONFIGURATION_BAR_ATTR: kernel::configfs::Attribute<
841 /// kernel::configfs::Attribute::new({
859 /// static CONFIGURATION_ATTRS: kernel::configfs::AttributeList<N, Configuration> =
860 /// unsafe { kernel::configfs::AttributeList::new() };
873 /// kernel::configfs::ItemType<configfs::Subsystem<Configuration> ,Configuration>
874 /// = kernel::configfs::ItemType::<
875 /// configfs::Subsystem<Configuration>,
1000 $crate::configfs::Attribute<$attr, $data, $data> =
1002 $crate::configfs::Attribute::new(
1014 $crate::configfs::AttributeList<N, $data> =
1015 unsafe { $crate::configfs::AttributeList::new() };
1022 static [< $data:upper _TPE >] : $crate::configfs::ItemType<$container, $data> =
1023 $crate::configfs::ItemType::<$container, $data>::new::<N>(
1030 $crate::configfs::ItemType<$container, $data> =
1031 $crate::configfs::ItemType::<$container, $data>::