Files
nvdriver/tests/oracles/compat-layout.c
nvidia-driver-rs 4526e6a816 Baseline: validated 30/30 tree with passing Level 7 hardware regression
- Updated tools/post_reboot.sh to check kernel oops taint bit and stuck driver tasks instead of <86400s uptime
- Level 7 hardware regression passed on 0000:b3:00.0 (module 37e6fa430835eee2b426019db3ad70eeb7a9e9070c09c84bd9b973cf56cbe529, 107 inventory words, 0 static mismatches, CUDA baseline verified before and after)
- Updated .gitignore to exclude build archives (*.a, *.rlib), __pycache__, and raw trace dumps
2026-11-23 23:48:38 +00:00

17 lines
1.2 KiB
C

/* Compile-only oracle against exact shipped fixed-width headers. */
#include "nv-ioctl.h"
#include "nvos.h"
#define OFF(t,f) __builtin_offsetof(t,f)
const unsigned int compat_layout[] = {
sizeof(void*),
sizeof(nv_ioctl_xfer_t),_Alignof(nv_ioctl_xfer_t),OFF(nv_ioctl_xfer_t,ptr),
sizeof(nv_ioctl_card_info_t),_Alignof(nv_ioctl_card_info_t),OFF(nv_ioctl_card_info_t,reg_address),OFF(nv_ioctl_card_info_t,minor_number),
sizeof(NVOS00_PARAMETERS),_Alignof(NVOS00_PARAMETERS),OFF(NVOS00_PARAMETERS,status),
sizeof(NVOS21_PARAMETERS),_Alignof(NVOS21_PARAMETERS),OFF(NVOS21_PARAMETERS,pAllocParms),OFF(NVOS21_PARAMETERS,paramsSize),OFF(NVOS21_PARAMETERS,status),
sizeof(NVOS54_PARAMETERS),_Alignof(NVOS54_PARAMETERS),OFF(NVOS54_PARAMETERS,params),OFF(NVOS54_PARAMETERS,paramsSize),OFF(NVOS54_PARAMETERS,status),
sizeof(NVOS64_PARAMETERS),_Alignof(NVOS64_PARAMETERS),OFF(NVOS64_PARAMETERS,pAllocParms),OFF(NVOS64_PARAMETERS,pRightsRequested),OFF(NVOS64_PARAMETERS,paramsSize),OFF(NVOS64_PARAMETERS,status),
sizeof(nv_ioctl_rm_api_version_t),_Alignof(nv_ioctl_rm_api_version_t),
sizeof(nv_ioctl_alloc_os_event_t),_Alignof(nv_ioctl_alloc_os_event_t),
sizeof(nv_ioctl_free_os_event_t),_Alignof(nv_ioctl_free_os_event_t)
};