LibvirtGConfig.DomainHostdevPci

g GObject.Object GObject.Object LibvirtGConfig.Object LibvirtGConfig.Object GObject.Object->LibvirtGConfig.Object LibvirtGConfig.DomainDevice LibvirtGConfig.DomainDevice LibvirtGConfig.DomainHostdev LibvirtGConfig.DomainHostdev LibvirtGConfig.DomainDevice->LibvirtGConfig.DomainHostdev LibvirtGConfig.DomainHostdevPci LibvirtGConfig.DomainHostdevPci LibvirtGConfig.DomainHostdev->LibvirtGConfig.DomainHostdevPci LibvirtGConfig.Object->LibvirtGConfig.DomainDevice

Subclasses:

None

Methods

Inherited:

LibvirtGConfig.DomainHostdev (6), LibvirtGConfig.DomainDevice (1), LibvirtGConfig.Object (6), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_from_xml (xml)

get_address ()

get_managed ()

get_rom_bar ()

get_rom_file ()

set_address (address)

set_managed (managed)

set_rom_bar (bar)

set_rom_file (file)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

LibvirtGConfig.Object (2)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

LibvirtGConfig.DomainHostdev

r

Class Details

class LibvirtGConfig.DomainHostdevPci(**kwargs)
Bases:

LibvirtGConfig.DomainHostdev

Abstract:

No

Structure:

LibvirtGConfig.DomainHostdevPciClass

classmethod new()
Returns:

a new LibvirtGConfig.DomainHostdevPci. The returned object should be unreffed with GObject.Object.unref() when no longer needed.

Return type:

LibvirtGConfig.DomainHostdevPci

Creates a new LibvirtGConfig.DomainHostdevPci.

classmethod new_from_xml(xml)
Parameters:

xml (str) – xml data to create the host device from

Raises:

GLib.Error

Returns:

a new LibvirtGConfig.DomainHostdevPci, or None if xml failed to be parsed. The returned object should be unreffed with GObject.Object.unref() when no longer needed.

Return type:

LibvirtGConfig.DomainHostdevPci

Creates a new LibvirtGConfig.DomainHostdevPci. The host device object will be created using the XML description stored in xml. This is a fragment of libvirt domain XML whose root node is <hostdev>.

get_address()
Returns:

a new LibvirtGConfig.DomainAddressPci, or None if no address is associated with self. The returned object should be unreffed with GObject.Object.unref() when no longer needed.

Return type:

LibvirtGConfig.DomainAddressPci

Gets the address associated with self.

get_managed()
Return type:

bool

get_rom_bar()
Return type:

bool

get_rom_file()
Return type:

str

set_address(address)
Parameters:

address (LibvirtGConfig.DomainAddressPci) –

set_managed(managed)
Parameters:

managed (bool) –

set_rom_bar(bar)
Parameters:

bar (bool) –

set_rom_file(file)
Parameters:

file (str) –