[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a71a855f-9f3b-c99d-d4f9-c1ceb13c690d@amazon.com>
Date: Fri, 25 Feb 2022 20:06:39 +0100
From: Alexander Graf <graf@...zon.com>
To: "Jason A. Donenfeld" <Jason@...c4.com>,
Ard Biesheuvel <ardb@...nel.org>
CC: ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
"Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>,
Len Brown <lenb@...nel.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Greg KH <gregkh@...uxfoundation.org>,
"Woodhouse, David" <dwmw@...zon.co.uk>
Subject: Re: [PATCH] ACPI: bus: Match first 9 bytes of device IDs
On 25.02.22 19:39, Jason A. Donenfeld wrote:
> 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.
Is the size increase (mostly rodata I suppose? Anywhere else?) measurable?
Alex
Amazon Development Center Germany GmbH
Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
Sitz: Berlin
Ust-ID: DE 289 237 879
Powered by blists - more mailing lists