Isaac Dunham pointed out that the kernel treats - and _ as identical in module names...
authorRob Landley <rob@landley.net>
Wed, 24 Apr 2013 08:04:31 +0000 (03:04 -0500)
committerRob Landley <rob@landley.net>
Wed, 24 Apr 2013 08:04:31 +0000 (03:04 -0500)
commit4cf2a1ccff7cd6df59782ee0d5673f4969671ca9
tree457c2a7d0fa840acde96854c45dcc3f82a1941a3
parentc732dce980dfec2c34b4d9bee131fb87d2f1557f
Isaac Dunham pointed out that the kernel treats - and _ as identical in module names, so modinfo should too. Made it use mmap() while I was there, and some cosmetic refactoring.
toys/other/modinfo.c