drm_property_create_bool(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_property_create_bool πŸ’–

okay so bestie, welcome to the drm_property_create_bool(9) page β€” it lives in the Kernel API Manual and it's literally the moment a brand-new boolean property gets born into the DRM universe. πŸŽ€

✨ NAME ✨

drm_property_create_bool β€” create a new boolean property type πŸ¦‹


🌸 SYNOPSIS 🌸

struct drm_property * drm_property_create_bool (struct drm_device *dev ,
       u32 flags , const char *name );

πŸ’… ARGUMENTS πŸ’…

  • dev β€” the drm device, the main character of this whole operation πŸ‘‘
  • flags β€” the flags that specify the property type, iykyk
  • name β€” the name of the property, so everyone knows what to call it 🏷️

🧚 DESCRIPTION 🧚

so this function creates a new generic drm property, and that property can then be attached to a drm object using drm_object_attach_property. slay. ✨

the returned property object must be freed with drm_property_destroy β€” and ngl, that's actually handled automatically for you when you call drm_mode_config_cleanup. no cap, it's giving convenient. 🫢

lowkey important: this is implemented as a ranged property with only {0, 1} as valid values β€” so yeah, it's a bool, but underneath it's a range that only tolerates those two numbers. πŸ’€

🌈 RETURN 🌈

a pointer to the newly created property on success, or NULL on failure 😭 (yes, you have to check. always check.)


πŸ’œ SEE ALSO πŸ’œ


and that's the whole vibe, bestie β€” go forth and make bools πŸ’– this one's from ./drivers/gpu/drm, dated October 2026, and that's a wrap, periodt. πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from