Re: [PATCH rdma-next 05/12] IB/uverbs: Safely extend existing attributes

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

 



On Mon, Mar 12, 2018 at 08:34:11PM +0000, Ruhl, Michael J wrote:

> I still think that this flag should be split into two pieces, so I can avoid the
> ib_is_buffer_cleared() if I don't need it.

You always need it.

It is part of ABI compatability, if you declare that a struct can be
extended then you have to check that someone isn't using a new
extension with an old kernel.

Globally we define that as meaning the unknown part of the struct is
0.

If this is a problem for your API then you are probably not designing
it properly for extension..

I actually don't expect MIN_SZ to be used very often.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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