IOCTL VALIDATION HELPERS(9)
π IOCTL validation helpers(9) π
Okay bestie, welcome to the Kernel API Manual page for IOCTL validation helpers(9) β section 9, very demure, very kernel. π
To validate the constraints imposed on IOCTL argument structs, a collection of macros and helper functions exists in pvr_device.h. Thatβs the whole squad, living together in one header. β¨
Of the current helpers, it should only be necessary to call PVR_IOCTL_UNION_PADDING_CHECK directly. This macro should be used once in every code path which extracts a union member from a struct passed from userspace. Periodt β every single path. π«Ά
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/imagination/pvr_device.h struct pvr_gpu_id(9)struct pvr_fw_version(9)struct pvr_device_data(9)struct pvr_device(9)struct pvr_file(9)PVR_HAS_FEATURE(9)PVR_FEATURE_VALUE(9)PVR_HAS_QUIRK(9)PVR_HAS_ENHANCEMENT(9)PVR_PACKED_BVNC(9)pvr_gpu_id_to_packed_bvnc(9)PVR_CR_FIELD_GET(9)pvr_cr_read32(9)pvr_cr_read64(9)pvr_cr_write32(9)pvr_cr_write64(9)pvr_cr_poll_reg32(9)pvr_cr_poll_reg64(9)pvr_round_up_to_cacheline_size(9)pvr_ioctl_union_padding_check(9)PVR_STATIC_ASSERT_64BIT_ALIGNED(9)PVR_IOCTL_UNION_PADDING_CHECK(9)
Mwah π β source ./drivers/gpu/drm/imagination, date October 2026, and this cutie is IOCTL validation helpers(9). Stay slay, bestie. π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms