• Vishal Verma's avatar
    device-dax: Add a 'modalias' attribute to DAX 'bus' devices · c347bd71
    Vishal Verma authored
    Add a 'modalias' attribute to devices under the DAX bus so that userspace
    is able to dynamically load modules as needed.
    
    Normally, udev can get the modalias from 'uevent', and that is correctly
    set up by the DAX bus. However other tooling such as 'libndctl' for
    interacting with drivers/nvdimm/, and 'libdaxctl' for drivers/dax/ can
    also use the modalias to dynamically load modules via libkmod lookups.
    
    The 'nd' bus set up by the libnvdimm subsystem exports a modalias
    attribute. Imitate this to export the same for the 'dax' bus.
    
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Signed-off-by: default avatarVishal Verma <vishal.l.verma@intel.com>
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
    c347bd71
bus.c 11.8 KB