| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.NM.Structs.SriovVF
Description
No description available in the introspection data.
Synopsis
- newtype SriovVF = SriovVF (ManagedPtr SriovVF)
- sriovVFAddVlan :: (HasCallStack, MonadIO m) => SriovVF -> Word32 -> m Bool
- sriovVFAttributeValidate :: (HasCallStack, MonadIO m) => Text -> GVariant -> m Bool
- sriovVFDup :: (HasCallStack, MonadIO m) => SriovVF -> m SriovVF
- sriovVFEqual :: (HasCallStack, MonadIO m) => SriovVF -> SriovVF -> m Bool
- sriovVFGetAttribute :: (HasCallStack, MonadIO m) => SriovVF -> Text -> m GVariant
- sriovVFGetAttributeNames :: (HasCallStack, MonadIO m) => SriovVF -> m [Text]
- sriovVFGetIndex :: (HasCallStack, MonadIO m) => SriovVF -> m Word32
- sriovVFGetVlanIds :: (HasCallStack, MonadIO m) => SriovVF -> m [Word32]
- sriovVFGetVlanProtocol :: (HasCallStack, MonadIO m) => SriovVF -> Word32 -> m SriovVFVlanProtocol
- sriovVFGetVlanQos :: (HasCallStack, MonadIO m) => SriovVF -> Word32 -> m Word32
- sriovVFNew :: (HasCallStack, MonadIO m) => Word32 -> m SriovVF
- sriovVFRef :: (HasCallStack, MonadIO m) => SriovVF -> m ()
- sriovVFRemoveVlan :: (HasCallStack, MonadIO m) => SriovVF -> Word32 -> m Bool
- sriovVFSetAttribute :: (HasCallStack, MonadIO m) => SriovVF -> Text -> Maybe GVariant -> m ()
- sriovVFSetVlanProtocol :: (HasCallStack, MonadIO m) => SriovVF -> Word32 -> SriovVFVlanProtocol -> m ()
- sriovVFSetVlanQos :: (HasCallStack, MonadIO m) => SriovVF -> Word32 -> Word32 -> m ()
- sriovVFUnref :: (HasCallStack, MonadIO m) => SriovVF -> m ()
Exported types
Memory-managed wrapper type.
Constructors
| SriovVF (ManagedPtr SriovVF) |
Instances
| Eq SriovVF Source # | |
| GBoxed SriovVF Source # | |
Defined in GI.NM.Structs.SriovVF | |
| ManagedPtrNewtype SriovVF Source # | |
Defined in GI.NM.Structs.SriovVF Methods toManagedPtr :: SriovVF -> ManagedPtr SriovVF # | |
| TypedObject SriovVF Source # | |
Defined in GI.NM.Structs.SriovVF | |
| HasParentTypes SriovVF Source # | |
Defined in GI.NM.Structs.SriovVF | |
| IsGValue (Maybe SriovVF) Source # | Convert |
Defined in GI.NM.Structs.SriovVF | |
| type ParentTypes SriovVF Source # | |
Defined in GI.NM.Structs.SriovVF | |
Methods
Click to display all available methods, including inherited ones
Methods
addVlan, dup, equal, ref, removeVlan, unref.
Getters
getAttribute, getAttributeNames, getIndex, getVlanIds, getVlanProtocol, getVlanQos.
Setters
addVlan
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> Word32 |
|
| -> m Bool | Returns: |
Adds a VLAN to the VF. Currently kernel only supports one VLAN per VF.
Since: 1.14
attributeValidate
sriovVFAttributeValidate Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> GVariant |
|
| -> m Bool | (Can throw |
Validates a VF attribute, i.e. checks that the attribute is a known one, the value is of the correct type and well-formed.
Since: 1.42
dup
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> m SriovVF | Returns: a copy of |
Creates a copy of vf.
Since: 1.14
equal
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> SriovVF |
|
| -> m Bool | Returns: |
Determines if two SriovVF objects have the same index,
attributes and VLANs.
Since: 1.14
getAttribute
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> Text |
|
| -> m GVariant | Returns: the value of the attribute with name |
Gets the value of the attribute with name name on vf
Since: 1.14
getAttributeNames
sriovVFGetAttributeNames Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> m [Text] | Returns: a |
Gets an array of attribute names defined on vf.
Since: 1.14
getIndex
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> m Word32 | Returns: the VF index |
Gets the index property of this VF object.
Since: 1.14
getVlanIds
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> m [Word32] | Returns: a list of VLAN ids configured on the VF. |
Returns the VLANs currently configured on the VF. Currently kernel only supports one VLAN per VF.
Since: 1.14
getVlanProtocol
sriovVFGetVlanProtocol Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> Word32 |
|
| -> m SriovVFVlanProtocol | Returns: the configured protocol |
Returns the configured protocol for the given VLAN.
Since: 1.14
getVlanQos
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> Word32 |
|
| -> m Word32 | Returns: the QoS value |
Returns the QoS value for the given VLAN.
Since: 1.14
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Word32 |
|
| -> m SriovVF | Returns: the new |
Creates a new SriovVF object.
Since: 1.14
ref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> m () |
Increases the reference count of the object.
Since: 1.14
removeVlan
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> Word32 |
|
| -> m Bool | Returns: |
Removes a VLAN from a VF.
Since: 1.14
setAttribute
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> Text |
|
| -> Maybe GVariant |
|
| -> m () |
Sets the named attribute on vf to the given value.
Since: 1.14
setVlanProtocol
sriovVFSetVlanProtocol Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> Word32 |
|
| -> SriovVFVlanProtocol |
|
| -> m () |
Sets the protocol for the given VLAN.
Since: 1.14
setVlanQos
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> Word32 |
|
| -> Word32 |
|
| -> m () |
Sets a QoS value for the given VLAN.
Since: 1.14
unref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => SriovVF |
|
| -> m () |
Decreases the reference count of the object. If the reference count reaches zero, the object will be destroyed.
Since: 1.14