[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout
On Wed, 2015-02-25 at 12:16 +0000, Ian Campbell wrote: > In RFC style, rather than relying on the implicit assumptions of a > particular C ABI. > > I have also confirmed, using the Python gdb extension technique in > [0], that the struct offsets (in a Linux binary at least) are the same > as described here. [...] > [] > http://stackoverflow.com/questions/9788679/how-to-get-the-relative-adress-of-a-field-in-a-structure-dump-c, I had intended after the cut to include for reference: struct xen_netif_tx_request { gref => 0 offset => 4 flags => 6 id => 8 size => 10 } struct xen_netif_extra_info { type => 0 flags => 1 u => 2 } struct xen_netif_tx_response { id => 0 status => 2 } struct xen_netif_rx_request { id => 0 gref => 4 } struct xen_netif_rx_response { id => 0 offset => 2 flags => 4 status => 6 } (same for all arches, of course) Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |