redhat-rpm-config/find-provides.ksyms

10 lines
174 B
Plaintext
Raw Normal View History

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