module: support reading coresize from /sys if supported
authorDave Reisner <dreisner@archlinux.org>
Thu, 28 Jun 2012 13:09:48 +0000 (09:09 -0400)
committerDave Reisner <dreisner@archlinux.org>
Fri, 29 Jun 2012 17:04:41 +0000 (13:04 -0400)
commit486f901392e7eb6a5e8139785b9ff2ade5a547a8
tree1c336a7cb570aea12711921b23968fd727225fcb
parent2588e3dff5d2ac36fd38c19049749d8150524d1c
module: support reading coresize from /sys if supported

Linux 3.3 introduced the coresize attribute in /sys/module/*. When
available, use this instead of parsing some portion of /proc/modules.
libkmod/libkmod-module.c