drm_property_create_bool(9)
π 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, iykyknameβ 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 π
- Kernel file
./drivers/gpu/drm/drm_property.coverview(9) drm_property_create(9)drm_property_create_enum(9)drm_property_create_bitmask(9)drm_property_create_range(9)drm_property_create_signed_range(9)drm_property_create_object(9)drm_property_add_enum(9)drm_property_destroy(9)drm_property_create_blob(9)drm_property_blob_put(9)drm_property_blob_get(9)drm_property_lookup_blob(9)drm_property_replace_global_blob(9)drm_property_replace_blob(9)drm_property_replace_blob_from_id(9)
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
- 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