Jon Masters 97a328
#! /bin/sh
Jon Masters 97a328
Jon Masters 97a328
IFS=$'\n'
Jon Masters 97a328
Jon Masters 97a328
for module in $(grep -E '/lib/modules/.+\.ko$'); do
Jon Masters 97a328
    nm $module \
Jon Masters 97a328
    | sed -r -ne 's:^0*([0-9a-f]+) A __crc_(.+):ksym(\2) = \1:p'
Jon Masters 97a328
done \
Jon Masters 97a328
| sort -u