Difference between revisions of "Configfs"
[quality revision] | [quality revision] |
m
|
|
Template:ArticleMainWriter Template:ArticleApprovedVersion
Contents
1 Introduction[edit]
Configfs[1] is a RAM-based filesystem that provides the converse of sysfs functionality.
While sysfs provides a filesystem-based view of kernel objects, configfs is a filesystem-based manager of kernel objects or config_items (every object in configfs is a config_item). This means that kernel objects can be created, managed and destroyed from the user space.
2 Installing configs on your target board[edit]
Configfs can be enabled and ready to be used in all STM32MPU Embedded Software distribution, via the Linux® kernel configuration CONFIG_CONFIGFS_FS (set to yes by default):
Symbol: CONFIGFS_FS
Location:
File systems --->
Pseudo filesystems -->
-*- Userspace-driven configuration filesystem
Please refer to Menuconfig or how to configure kernel article for instructions for modifying the configuration and recompiling the Linux kernel image in the Distribution Package context.
3 Getting started[edit]
3.1 How to mount configfs[edit]
Use the following command to mount Configfs at /sys/kernel/config:
mount -t configfs none /sys/kernel/config
3.2 How to set and manage configfs from Linux kernel drivers and user space[edit]
Refer to the Linux documentation[1] for detailed information.
Configfs is used by the USB framwework. Refer to USB API description for an example.
4 References[edit]
<noinclude> {{ArticleMainWriter | Jean-PhilippeR}} {{ArticleApprovedVersion | Jean-PhilippeR | Jean-ChristopheT | No previous approved version | AnneJ - 14Jan'19 - 10267 | 16Jan'19}} [[Category:OpenSTLinux filesystem|02]]</noinclude> == Introduction == '''Configfs'''<ref name=configfsdoc>{{CodeSource | Linux kernel | Documentation/filesystems/configfs/configfs.txt}}</ref> is a RAM-based filesystem that provides the converse of sysfs functionality. While sysfs provides a filesystem-based view of kernel objects, configfs is a filesystem-based manager of kernel objects or config_items (every object in configfs is a config_item). This means that kernel objects can be created, managed and destroyed from the user space. == Installing configs on your target board == '''Configfs''' can be enabled and ready to be used in all STM32MPU Embedded Software distribution, via the Linux<sup>®</sup> kernel configuration '''CONFIG_CONFIGFS_FS''' (set to yes by default): Symbol: '''CONFIGFS_FS''' Location: File systems ---> Pseudo filesystems --> {{highlight|-*- Userspace-driven configuration filesystem}} Please refer to [[Menuconfig or how to configure kernel]] article for instructions for modifying the configuration and recompiling the Linux kernel image in the Distribution Package context. == Getting started == === How to mount configfs === Use the following command to mount '''Configfs''' at ''/sys/kernel/config'': {{Board$}} mount -t configfs none /sys/kernel/config === How to set and manage configfs from Linux kernel drivers and user space === Refer to the Linux documentation<ref name=configfsdoc/> for detailed information. {{ReviewsComments|Following link to be confirmed when fully completed}} Configfs is used by the USB framwework. Refer to [[USB_overview#API_description | USB API description]] for an example. == References ==<references /> <noinclude> [[Category:OpenSTLinux filesystem|02]] {{PublicationRequestId | 10267 | 2019-01-14 | AnneJ}}</noinclude>
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Introduction == |
== Introduction == |
||
'''Configfs'''<ref name=configfsdoc>{{CodeSource | Linux kernel | Documentation/filesystems/configfs/configfs.txt}}</ref> is a RAM-based filesystem that provides the converse of sysfs functionality. |
'''Configfs'''<ref name=configfsdoc>{{CodeSource | Linux kernel | Documentation/filesystems/configfs/configfs.txt}}</ref> is a RAM-based filesystem that provides the converse of sysfs functionality. |
||
Line 34: | Line 27: | ||
== References == |
== References == |
||
<references /> |
<references /> |
||
+ | |||
+ | <noinclude> |
||
+ | [[Category:OpenSTLinux filesystem|02]] |
||
+ | {{PublicationRequestId | 10267 | 2019-01-14 | AnneJ}} |
||
+ | </noinclude> |