mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
6cd43d3654
commit
288fdcd06d
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue