Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

#define RT_OFFSETOF ( type,
member   )     ( (int)(uintptr_t)&( ((type *)(void *)0)->member) )

Our own special offsetof() variant, returns a signed result.

This differs from the usual offsetof() in that it's not relying on builtin compiler stuff and thus can use variables in arrays the structure may contain. This is useful to determine the sizes of structures ending with a variable length field.

Returns:
offset into the structure of the specified member. signed.
Parameters:
type Structure type.
member Member.

Definition at line 1096 of file cdefs.h.

Referenced by csamReinit(), DarwinGetDVDDrives(), DarwinGetEthernetControllers(), dbgfR3SymbolInsert(), DECLCALLBACK(), DECLINLINE(), drvdiskintWriteRecord(), FwCommonPlantDMITable(), main(), patmPatchGenCode(), patmPatchGenMovControl(), patmPatchGenMovDebug(), patmPatchGenSldtStr(), patmPatchGenSxDT(), patmReinit(), pdmR3DevInit(), pdmR3QueueCreate(), pgmR3PoolInit(), REMR3DECL(), rtldrOpenWithReader(), rtldrPEConvert32BitLoadConfigTo64Bit(), rtldrPEConvert32BitOptionalHeaderTo64Bit(), rtldrPEValidateDirectories(), rtR0InitNative(), rtR0MemObjLinuxAllocPages(), rtR0MemObjNativeAllocCont(), rtR0MemObjNativeAllocLow(), rtR0MemObjNativeAllocPage(), rtR0MemObjNativeAllocPhys(), rtR0MemObjNativeEnterPhys(), rtR0MemObjNativeLockKernel(), rtR0MemObjNativeLockUser(), rtR0MemObjNativeMapKernel(), rtR0MemObjNativeMapUser(), rtR0MemObjNtLock(), supdrvIOCtl_LdrOpen(), TrackerCreate(), vboxNetFltFreeBSDinput(), vboxNetFltFreeBSDoutput(), vboxNetFltLinuxForwardAsGso(), vboxNetFltLinuxForwardSegment(), vboxNetFltLinuxSkBufFromSG(), vboxNetFltNewInstance(), vboxNetFltSolarisRecv(), VMM_INT_DECL(), VMMR3DECL(), vmmR3InitLoggers(), vmmR3SwitcherGenericRelocate(), and vusbRhNewUrb().


Generated by  Doxygen 1.6.0   Back to index