[openib-general] Missining Infiniband class fields
Michael S. Tsirkin
mst at mellanox.co.il
Thu Dec 9 09:09:33 PST 2004
Quoting r. shaharf (shaharf at voltaire.com) "RE: [openib-general] Missining Infiniband class fields":
> > -----Original Message-----
> > From: Michael S. Tsirkin [mailto:mst at mellanox.co.il]
> > Sent: Thursday, December 09, 2004 7:04 PM
> > To: shaharf
> > Cc: openib-general at openib.org
> > Subject: Re: [openib-general] Missining Infiniband class fields
> > Hello!
> > Quoting r. shaharf (shaharf at voltaire.com) "[openib-general] Missining
> > Infiniband class fields":
> > > 2. I need an interface for setting/clearing IS_SM bit. If there is
> > please
> > > let me know. If not, I would like to add an additional ioctl to
> > set/clear the
> > > IS_SM bit. A ctl file in /dev/?/ports/?/ is anther option. Please
> > me what
> > > do you think.
> > Please note that you want to clear this bit automatically if the
> > application set it and then dies.
> > One way to do this is to require that the user keeps some file
> > open while he wants to be the SM, and clear it on file close.
> > mst
> Indeed this plays in the favor of ioctl.
ioctls have a disadvantage of being half-broken when used
by a 32 bti app on the 64 bit OS.
Maybe write 1 to some offset to set the SM bit?
This is what /proc/bus/pci has for pci configuration access.
More information about the general