PVR_FEATURE_VALUE(9)
π PVR_FEATURE_VALUE(9) β the Kernel API Manual page your bestie needed
okay so this is PVR_FEATURE_VALUE, a macro from the Kernel API Manual, and it's genuinely so straightforward you're gonna slay this π
β¨ NAME β¨
PVR_FEATURE_VALUE β gets a PowerVR device feature value. that's it. that's the whole job. iconic behavior honestly π
πΈ SYNOPSIS πΈ
PVR_FEATURE_VALUE (pvr_dev , feature , value_out );
not me just vibing with a three-argument macro, no cap π¦
π§ ARGUMENTS π§
pvr_dev[IN]β the target PowerVR device. like, the device you're asking about. your main character device πfeature[IN]β the feature name. which feature are we checking, bestie? πvalue_out[OUT]β the feature value. this is where the answer lands β¨
π DESCRIPTION π
so this macro gets a feature value, for those features that have values β because not all of them do, and that's fine, we don't judge π
big caveat, listen up: if the feature is not present, nothing will be stored to value_out. literally nothing. so don't go assuming it got filled in, okay? π
and where do the feature names come from? they're derived from those found in struct pvr_device_features by dropping the 'has_' prefix. so the prefix gets dropped and the rest stays. no renaming, no remixing, just the drop π
π₯ RETURN π₯
0on success, or-EINVALif the named feature is not present in the hardware π
two outcomes, both valid, one of them just means "nah, not here" π
π 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_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), IOCTL validation helpers(9), pvr_ioctl_union_padding_check(9), PVR_STATIC_ASSERT_64BIT_ALIGNED(9), PVR_IOCTL_UNION_PADDING_CHECK(9)
like, the whole friend group fr fr π«Ά
anyway bestie, that's the page π
this gem lives over in ./drivers/gpu/drm/imagination, and the version/date on this one is October 2026 β so mark your calendar, mwah πβ¨π
π¦ 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