libxl: Pointer on usage of libxl__domain_userdata_lock

It is currently difficult to know how/when/why the userdata lock is
supposed to be used. Add some pointers to the hotplug comments.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
Anthony PERARD authored and Ian Jackson committed 2019-09-19 12:24:46 +01:00
1 parent 4354f2a5b8
commit fb1d33bd7b
1 file changed
+6
+6
View File
@@ -4477,6 +4477,12 @@ void libxl__unlock_domain_userdata(libxl__domain_userdata_lock *lock);
* data store. The registry entry in libxl private data store
* is "libxl-json".
* Caller must hold user data lock.
*
* Other names used for this lock throughout the libxl code are json_lock,
* libxl__domain_userdata_lock, "libxl-json", data store lock.
*
* See the comment for libxl__ao_device, and "Algorithm for handling device
* removal", for information about using the libxl-json lock / json_lock.
*/
int libxl__get_domain_configuration(libxl__gc *gc, uint32_t domid,
libxl_domain_config *d_config);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.