drm_property..._global_blob(9)
π NAME π
okay bestie, welcome to the drm_property..._global_blob(9) page from the Kernel API Manual β¨ β but the actual function we're hyping is drm_property_replace_global_blob, and its whole job is to replace an existing blob property. iconic, honestly. π
β¨ SYNOPSIS β¨
int drm_property_replace_global_blob (struct drm_device *dev , struct
drm_property_blob **replace , size_t length , const void *data , struct
drm_mode_object *obj_holds_id , struct drm_property *prop_holds_id );
π«Ά ARGUMENTS π«Ά
devβ drm devicereplaceβ location of blob property pointer to be replacedlengthβ length of data for new blob, or0for no datadataβ content for new blob, orNULLfor no dataobj_holds_idβ optional object for property holding blob IDprop_holds_idβ optional property holding blob ID; return0on success or error on failure
πΈ DESCRIPTION πΈ
okay so here's the tea β: this function will replace a global property in the blob list, and it can optionally update a property which holds the ID of that property. slay. β¨
if length is 0 or data is NULL, no new blob will be created, and the holding property, if specified, will be set to 0. periodt. π
access to the replace pointer is assumed to be protected by the caller β e.g. by holding the relevant modesetting object lock for its parent. no cap, the caller has to bring that lock energy. π
for example, a drm_connector has a 'PATH' property, which contains the ID of a blob property with the value of the MST path information. calling this function with replace pointing to the connector's path_blob_ptr, length and data set for the new path information, obj_holds_id set to the connector's base object, and prop_holds_id set to the path property name, will perform a completely atomic update. the access to path_blob_ptr is protected by the caller holding a lock on the connector. that's the whole vibe: caller holds the lock, update is fully atomic. β¨π₯
π¦ 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_create_bool(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_blob(9)drm_property_replace_blob_from_id(9)
okay bye bestie! π this page's footer energy is source/version ./drivers/gpu/drm, date October 2026, and page name drm_property..._global_blob(9) β catch u later, 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