Re: [PATCH] ACPI: bus: Match first 9 bytes of device IDs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Okay, the final piece, userspace:

/sys/bus/acpi/devices/QEMUVGID:00/modalias gives:
    acpi:QEMUVGID:VM_GEN_COUNTER:

modinfo -F alias vmgenid.ko gives:
    acpi*:VM_GEN_COUNTER:*

udev src uses fnmatch.

Bash confirms a match:

$ [[ "acpi:QEMUVGID:VM_GEN_COUNTER:" == acpi*:VM_GEN_COUNTER:* ]] &&
echo matches
matches

So I think with ACPI_ID_LEN --> 16 we are good to go.

Jason



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux