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