Re: [PATCH for-next 1/1] IB/{hw,sw}: remove 'uobject->context' dependency in object creation APIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Feb 03, 2019 at 06:43:31PM +0200, Shamir Rabinovitch wrote:
> > I don't think we should be duplicating the driver object, sharing
> > should be a uverbs thing where it just creates a new uobject and
> > points to the same driver object. Somehow this has to work out
> > a lifetime too.
> 
> I think I was miss understood here... Duplicating the object is not
> duplicating the ib_x HW object but rather letting the driver to copy the
> related information from the existing ib_x object to the user-space
> library. Example is the pdn number in mlx4 ib_bd creation. 

We should have a query API for drivers to call if they want to
re-attach to shared objects. The query can return any driver specific
information that might be needed.

Maybe drivers that don't implement the query can't do the share?

Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux