pvr_hwrt_dataset_lookup(9)
π pvr_hwrt_dataset_lookup(9) β like, the whole page, but make it make sense
okay so this is from the Kernel API Manual, and the star of the show is pvr_hwrt_dataset_lookup β¨ β yes that's a mouthful, we're gonna get through it together, bestie π«Ά
π NAME π
pvr_hwrt_dataset_lookup β bestie, this literally just looks up an HWRT dataset pointer from a handle. that's the whole vibe check π
πΈ SYNOPSIS πΈ
struct pvr_hwrt_dataset * pvr_hwrt_dataset_lookup (struct pvr_file
*pvr_file , u32 handle );
like, you hand it a pvr_file and a handle, and it gives you back a struct pvr_hwrt_dataset *. iconic signature, no notes π
π¦ ARGUMENTS π¦
pvr_fileβ pointer to thepvr_filestructure. yes. it's a pointer to the thing. we love her πhandleβ the object handle. it's au32, it's the key you're looking up, periodt.
β¨ DESCRIPTION β¨
so what actually happens? it takes a reference on the dataset object π₯ β like it's holding onto it for you so it doesn't ghost you mid-use.
β οΈ important bestie: you gotta call pvr_hwrt_dataset_put to release that reference. don't just walk away with it, that's not the move π
π RETURN π
- The requested object on success π β slay, you got it
NULLon failure π β and why would it fail? (object does not exist in list, or is not a HWRT dataset). so if it's not in the list, or it's just not the right kind of dataset, you get the bigNULL. ngl, rude, but fair π
π§ SEE ALSO π§
- Kernel file
./drivers/gpu/drm/imagination/pvr_hwrt.h struct pvr_hwrt_data(9)struct pvr_hwrt_dataset(9)pvr_hwrt_data_lookup(9)pvr_hwrt_data_put(9)
iykyk, go read those too, they're all in the same little friend group π
okay that's the page!! π this all lives over in ./drivers/gpu/drm/imagination, dated October 2026, and the whole thing is filed under pvr_hwrt_dataset_lookup(9) β mwah, go forth and reference-count responsibly πβ¨
π¦ 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