[openib-general] Re: [PATCH] SDP: use container_of in place of cast to sdp_opt

Tom Duffy tduffy at sun.com
Tue Jun 21 08:38:11 PDT 2005


On Tue, 2005-06-21 at 09:21 +0300, Michael S. Tsirkin wrote:
> Here's a patch to replace explicit cast to sdp_opt with container_of, removing
> assumptions on structure layout.
> As a side note, wouldnt sk_to_sdp and sdp_to_sk be better names for
> sdp_sk and sk_sdp?

I modeled this code based off of every other socket class in Linux.
They use casts and shortened names.

-tduffy

-- 
I wish we lived in the America of yesteryear that only exists in the
minds of us Republicans.
                                        -- Ned Flanders
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050621/7f577617/attachment.sig>


More information about the general mailing list