Comment 7 for bug 715930

Revision history for this message
Elan Ruusamäe (glen666) wrote : Re: [Bug 715930] Re: geninitrd fails on masked vendor:device entries.

On 10/02/11 19:57, Paweł Sikora wrote:
> one more thing. instead of comparing against specific 0xffff mask
> there'd be a bit-and operation:
>
> if ((lspci-device-id & device-mask-from-kernel-pcimap)==lspci-device-id)
> then module-matched.

propose some code to do bitwise hex string matching in limited base
tools (awk, sed, grep...)

awk doesn't do it natively:

$ awk '{print 1&2}'
awk: 1: unexpected character '&'

--
glen