[openib-general] [PATCH] Yet more sysfs support
Michael S. Tsirkin
mst at mellanox.co.il
Tue Sep 7 07:53:56 PDT 2004
Quoting r. Roland Dreier (roland at topspin.com) "Re: [openib-general] [PATCH] Yet more sysfs support":
> Michael> When we start writing to bits (like IsSM bit) to have a
> Michael> separate flag will be better as it will guarantee
> Michael> automicity.
>
> I'm not convinced sysfs is the right interface to set capability
> bits. You lose the ability to clean up when an app exits uncleanly
> (for example leaving the IsSM bit set with no SM running).
>
> - Roland
Interesting. It seems we need a way to catch close on the sysfs file
and there does not seem to exist an easy way to do this.
But there *is* the hard way - by finding and replacing the f_ops pointer, no?
MST
More information about the general
mailing list