• Rafael J. Wysocki's avatar
    ACPI / hotplug: Introduce user space interface for hotplug profiles · 3f8055c3
    Rafael J. Wysocki authored
    Introduce user space interface for manipulating hotplug profiles
    associated with ACPI scan handlers.
    
    The interface consists of sysfs directories under
    /sys/firmware/acpi/hotplug/, one for each hotplug profile, containing
    an attribute allowing user space to manipulate the enabled field of
    the corresponding profile.  Namely, switching the enabled attribute
    from '0' to '1' will cause the common hotplug notify handler to be
    installed for all ACPI namespace objects representing devices matching
    the scan handler associated with the given hotplug profile (and
    analogously for the converse switch).
    
    Drivers willing to use the new user space interface should add their
    ACPI scan handlers with the help of new funtion
    acpi_scan_add_handler_with_hotplug().
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Acked-by: default avatarToshi Kani <toshi.kani@hp.com>
    Tested-by: default avatarToshi Kani <toshi.kani@hp.com>
    3f8055c3
sysfs-firmware-acpi 6.07 KB