• Lucas De Marchi's avatar
    Bluetooth: allocate static minor for vhci · b075dd40
    Lucas De Marchi authored
    Commit bfacbb9a (Bluetooth: Use devname:vhci module alias for virtual HCI
    driver) added the module alias to hci_vhci module so it's possible to
    create the /dev/vhci node. However creating an alias without
    specifying the minor doesn't allow us to create the node ahead,
    triggerring module auto-load when it's first accessed.
    
    Starting with depmod from kmod 16 we started to warn if there's a
    devname alias without specifying the major and minor.
    
    Let's do the same done for uhid, kvm, fuse and others, specifying a
    fixed minor. In systems with systemd as the init the following will
    happen: on early boot systemd will call "kmod static-nodes" to read
    /lib/modules/$(uname -r)/modules.devname and then create the nodes. When
    first accessed these "dead" nodes will trigger the module loading.
    Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
    Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    b075dd40
hci_vhci.c 7.86 KB