read_properties_unlocked(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

โœจ NAME โœจ

okay bestie, welcome to read_properties_unlocked(9) from the Kernel API Manual ๐Ÿ’– โ€” this is the page for validate + copy userspace stream open properties. Itโ€™s giving โ€œcheck every property on its ownโ€ energy, and honestly? Iconic. ๐ŸŽ€


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

int read_properties_unlocked (struct i915_perf *perf , u64 __user
       *uprops , u32 n_props , struct perf_open_properties *props );

๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • perf โ€” the i915 perf instance, obviously ๐Ÿ’…
  • uprops โ€” the array of u64 key value pairs that userspace handed over โœจ
  • n_props โ€” the number of key value pairs we expect in uprops ๐Ÿ”ข
  • props โ€” the stream configuration that gets built up while the properties are being validated ๐Ÿ› ๏ธ

๐ŸŒธ DESCRIPTION ๐ŸŒธ

okay so listen: this function only validates properties in isolation. It does not validate that the combination of properties makes sense, and it does not validate that all properties necessary for a particular kind of stream have been set. Thatโ€™s the assignment. ๐Ÿ‘‘

real talk, bestie: isolated checks only โ€” no group-project validation here ๐Ÿ˜ญ

Also, there currently arenโ€™t any ordering requirements for properties, so we shouldnโ€™t validate or assume anything about ordering here. This doesnโ€™t rule out defining new properties with ordering requirements in the future, though. Future icon behavior stays future icon behavior. ๐Ÿ”ฎ


๐Ÿ’œ SEE ALSO ๐Ÿ’œ

The kernel file is ./drivers/gpu/drm/i915/i915_perf.c โ€” and hereโ€™s the whole SEE ALSO squad, no cap:


made with ๐Ÿ’– from ./drivers/gpu/drm/i915, October 2026 โ€” catch u later, bestie! ๐Ÿซถโœจ

๐Ÿ“ฆ where this page comes from