~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/ABI/testing/sysfs-uevent

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/ABI/testing/sysfs-uevent (Version linux-6.12-rc7) and /Documentation/ABI/testing/sysfs-uevent (Version linux-4.17.19)


  1 What:           /sys/.../uevent                     1 What:           /sys/.../uevent
  2 Date:           May 2017                            2 Date:           May 2017
  3 KernelVersion:  4.13                                3 KernelVersion:  4.13
  4 Contact:        Linux kernel mailing list <linu      4 Contact:        Linux kernel mailing list <linux-kernel@vger.kernel.org>
  5 Description:                                        5 Description:
  6                 Enable passing additional vari      6                 Enable passing additional variables for synthetic uevents that
  7                 are generated by writing /sys/      7                 are generated by writing /sys/.../uevent file.
  8                                                     8 
  9                 Recognized extended format is: !!   9                 Recognized extended format is ACTION [UUID [KEY=VALUE ...].
 10                                                    10 
 11                         ACTION [UUID [KEY=VALU !!  11                 The ACTION is compulsory - it is the name of the uevent action
 12                                                !!  12                 ("add", "change", "remove"). There is no change compared to
 13                 The ACTION is compulsory - it  !!  13                 previous functionality here. The rest of the extended format
 14                 action (``add``, ``change``, ` !!  14                 is optional.
 15                 compared to previous functiona << 
 16                 extended format is optional.   << 
 17                                                    15 
 18                 You need to pass UUID first be     16                 You need to pass UUID first before any KEY=VALUE pairs.
 19                 The UUID must be in ``xxxxxxxx !!  17                 The UUID must be in "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
 20                 format where 'x' is a hex digi     18                 format where 'x' is a hex digit. The UUID is considered to be
 21                 a transaction identifier so it     19                 a transaction identifier so it's possible to use the same UUID
 22                 value for one or more syntheti     20                 value for one or more synthetic uevents in which case we
 23                 logically group these uevents      21                 logically group these uevents together for any userspace
 24                 listeners. The UUID value appe     22                 listeners. The UUID value appears in uevent as
 25                 ``SYNTH_UUID=xxxxxxxx-xxxx-xxx !!  23                 "SYNTH_UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" environment
 26                 variable.                          24                 variable.
 27                                                    25 
 28                 If UUID is not passed in, the      26                 If UUID is not passed in, the generated synthetic uevent gains
 29                 ``SYNTH_UUID=0`` environment v !!  27                 "SYNTH_UUID=0" environment variable automatically.
 30                                                    28 
 31                 The KEY=VALUE pairs can contai     29                 The KEY=VALUE pairs can contain alphanumeric characters only.
 32                                                << 
 33                 It's possible to define zero o     30                 It's possible to define zero or more pairs - each pair is then
 34                 delimited by a space character     31                 delimited by a space character ' '. Each pair appears in
 35                 synthetic uevent as ``SYNTH_AR !!  32                 synthetic uevent as "SYNTH_ARG_KEY=VALUE". That means the KEY
 36                 name gains ``SYNTH_ARG_`` pref !!  33                 name gains "SYNTH_ARG_" prefix to avoid possible collisions
 37                 with existing variables.           34                 with existing variables.
 38                                                    35 
 39                 Example of valid sequence writ !!  36                 Example of valid sequence written to the uevent file:
 40                                                    37 
 41                     add fe4d7c9d-b8c6-4a70-9ef     38                     add fe4d7c9d-b8c6-4a70-9ef1-3d8a58d18eed A=1 B=abc
 42                                                    39 
 43                 This generates synthetic ueven !!  40                 This generates synthetic uevent including these variables:
 44                                                    41 
 45                     ACTION=add                     42                     ACTION=add
 46                     SYNTH_ARG_A=1                  43                     SYNTH_ARG_A=1
 47                     SYNTH_ARG_B=abc                44                     SYNTH_ARG_B=abc
 48                     SYNTH_UUID=fe4d7c9d-b8c6-4     45                     SYNTH_UUID=fe4d7c9d-b8c6-4a70-9ef1-3d8a58d18eed
 49                                                << 
 50 Users:                                             46 Users:
 51                 udev, userspace tools generati     47                 udev, userspace tools generating synthetic uevents
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php