[openib-general] looping with class_device_attr store
Suresh Shelvapille
suri at baymicrosystems.com
Thu Feb 2 15:00:24 PST 2006
Hi:
I created a class attr called portstate to toggle the port state values
(INIT/ARM etc...), as follows:
static CLASS_DEVICE_ATTR(portstate, S_IRUGO|S_IWUSR, show_stats,
store_portstate);
this results in a file under sys/class/Infiniband/mysw/.
When I write to the file from linux shell as, echo "1" > portstate, my store
function callback gets called forever....
Any ideas...
Thanks a lot in advance!
Suri
More information about the general
mailing list