Messages in this thread | | | From | Peter Rajnoha <> | Subject | [PATCH 0/2] Fix return code and improve feature check for synthetic uevents | Date | Wed, 5 Dec 2018 12:27:43 +0100 |
| |
Two small patches to aid handling of synthetic uevents back in userspace:
- Return error code back to userspace on /sys/.../uevent file write failure so userspace knows and it can act accordingly.
- Add new 'kernel/uevent_features' sysfs file to make it possible for userspace to check that the extended synthetic uevent arguments are supported without relying on kernel version check only.
Peter Rajnoha (2): kobject: return error code if writing /sys/.../uevent fails kobject: add kernel/uevent_features sysfs file
drivers/base/bus.c | 12 ++++++++---- drivers/base/core.c | 8 +++++++- kernel/ksysfs.c | 8 ++++++++ kernel/module.c | 6 ++++-- 4 files changed, 27 insertions(+), 7 deletions(-)
-- 2.19.2
| |