[libvirt] [PATCH v2 14/14] nodedev: Introduce virNodeDeviceObjNew
Peter Krempa
pkrempa at redhat.com
Fri May 26 12:13:36 UTC 2017
On Thu, May 25, 2017 at 15:57:11 -0400, John Ferlan wrote:
> Create an allocator for the virNodeDeviceObjPtr - include setting up
> the mutex, saving the virNodeDeviceDefPtr, and locking the return object.
>
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
> src/conf/virnodedeviceobj.c | 33 ++++++++++++++++++++++-----------
> 1 file changed, 22 insertions(+), 11 deletions(-)
>
> diff --git a/src/conf/virnodedeviceobj.c b/src/conf/virnodedeviceobj.c
> index 1648b33..a84266b 100644
> --- a/src/conf/virnodedeviceobj.c
> +++ b/src/conf/virnodedeviceobj.c
> @@ -33,6 +33,27 @@
> VIR_LOG_INIT("conf.virnodedeviceobj");
>
>
> +static virNodeDeviceObjPtr
> +virNodeDeviceObjNew(virNodeDeviceDefPtr *def)
Same as in previous patch. PAssing pointer to a pointer is really
overcomplicating stuff here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170526/29908548/attachment-0001.sig>
More information about the libvir-list
mailing list