Skip to contentSkip to conversation

Show module version sysfs file for built-in modules?

DISCUSSION [email protected] 2 participants 2 messages Jul 29, 2009

lore
Share & tools
lore
#0 lore raw

what about this ?

neoware:/sys/module/8139too # cat /sys/module/8139too/version 0.9.28

neoware:/sys/module/8139too # modinfo 8139too |grep "^version:"
version: 0.9.28

the latter should work completely without consulting the kernel for that information.

regards
roland

Quoted 7 lines
List:       linux-kernel
Subject:    Show module version sysfs file for built-in modules?
From:       Tomas Carnecky <tom () dbservice ! com>
Date:       2009-07-24 19:08:51
Message-ID: 5A77D882-B628-4105-85A3-ADE423BBD9F8 () dbservice ! com

[Download message RAW]

Quoted 7 lines

Some userspace tools check /sys/modules/XYZ/version to determine whether the required module is available and the version compatible with the userspace tool. But that sysfs file is not shown when the module is built into the kernel (as opposed being a loadable module). Is there a reason for that behavior? Or is there another way for userspace to check the presence and version of a module? The userspace tool in question here is the open-iscsi daemon (iscsid)

vwhich checks /sys/modules/scsi_transport_iscsi/version and refuses to

Quoted 4 lines

start if that file doesn't exist.

thanks
tom

________________________________________________________________
Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate für nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/

#1 lore raw
Quoted 5 lines · On 7/29/09, [email protected] <[email protected]> wrote:

what about this ?

neoware:/sys/module/8139too # cat /sys/module/8139too/version 0.9.28

Quoted 11 lines

neoware:/sys/module/8139too # modinfo 8139too |grep "^version:"
version: 0.9.28

the latter should work completely without consulting the kernel for that information.

regards
roland

Quoted 2 lines
List:       linux-kernel
Subject:    Show module version sysfs file for built-in modules?

modinfo clearly won't work for *built in* drivers. Apparently /sys/module/$MODULE/version doesn't work for built in modules either. Hence this proposal.

Alan