mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
libxl: Add comments to libxlDriverPrivate fields
Similar to the QEMU and LXC drivers, annotate the fields of libxlDriverPrivate struct to indicate the locking rules for their use.
This commit is contained in:
@@ -90,19 +90,26 @@ struct _libxlDriverPrivate {
|
||||
* then lockless thereafter */
|
||||
libxlDriverConfigPtr config;
|
||||
|
||||
/* Atomic inc/dec only */
|
||||
unsigned int nactive;
|
||||
|
||||
/* Immutable pointers. Caller must provide locking */
|
||||
virStateInhibitCallback inhibitCallback;
|
||||
void *inhibitOpaque;
|
||||
|
||||
/* Immutable pointer, self-locking APIs */
|
||||
virDomainObjListPtr domains;
|
||||
|
||||
/* Immutable pointer, immutable object */
|
||||
virDomainXMLOptionPtr xmlopt;
|
||||
|
||||
/* Immutable pointer, self-locking APIs */
|
||||
virDomainEventStatePtr domainEventState;
|
||||
|
||||
/* Immutable pointer, self-locking APIs */
|
||||
virPortAllocatorPtr reservedVNCPorts;
|
||||
|
||||
/* Immutable pointer, lockless APIs*/
|
||||
virSysinfoDefPtr hostsysinfo;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user