[openib-general] [PATCH] Yet more sysfs support
Michael S. Tsirkin
mst at mellanox.co.il
Mon Sep 6 22:55:10 PDT 2004
Hello!
Quoting r. Roland Dreier (roland at topspin.com) "Re: [openib-general] [PATCH] Yet more sysfs support":
> By the way, since /sys/class/infiniband/mthca0/ports/1/cap_mask just
> contains a hex number (such as '0x00500a68'), I wrote this quick
> python script to decode that capabilities. You can use it as:
>
> # python ~roland/bin/decode-cap mthca0 2
> Capabilities for mthca0 port 2:
> IsTrapSupported
> IsAutomaticMigrationSupported
> IsSLMappingSupported
> IsLEDInfoSupported
> IsSystemImageGUIDSupported
> IsVendorClassSupported
> IsCapabilityMaskNoticeSupported
>
> - R.
Wouldnt it be nicer to have one file per bit here?
More information about the general
mailing list