drm_property..._global_blob(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 device
  • replace β€” location of blob property pointer to be replaced
  • length β€” length of data for new blob, or 0 for no data
  • data β€” content for new blob, or NULL for no data
  • obj_holds_id β€” optional object for property holding blob ID
  • prop_holds_id β€” optional property holding blob ID; return 0 on 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 πŸ¦‹


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