gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.SettingInfiniband

Description

Infiniband Settings

Synopsis

Exported types

class (GObject o, IsDescendantOf SettingInfiniband o) => IsSettingInfiniband o Source #

Type class for types which can be safely cast to SettingInfiniband, for instance with toSettingInfiniband.

Instances

Instances details
(GObject o, IsDescendantOf SettingInfiniband o) => IsSettingInfiniband o Source # 
Instance details

Defined in GI.NM.Objects.SettingInfiniband

toSettingInfiniband :: (MonadIO m, IsSettingInfiniband o) => o -> m SettingInfiniband Source #

Cast to SettingInfiniband, for types for which this is known to be safe. For general casts, use castTo.

Methods

getMacAddress

settingInfinibandGetMacAddress Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingInfiniband a) 
=> a

setting: the SettingInfiniband

-> m Text

Returns: the SettingInfiniband:macAddress property of the setting

No description available in the introspection data.

getMtu

settingInfinibandGetMtu Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingInfiniband a) 
=> a

setting: the SettingInfiniband

-> m Word32

Returns: the SettingInfiniband:mtu property of the setting

No description available in the introspection data.

getPKey

settingInfinibandGetPKey Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingInfiniband a) 
=> a

setting: the SettingInfiniband

-> m Int32

Returns: the IPoIB P_Key

Returns the P_Key to use for this device. A value of -1 means to use the default P_Key (aka "the P_Key at index 0"). Otherwise, it is a 16-bit unsigned integer.

getParent

settingInfinibandGetParent Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingInfiniband a) 
=> a

setting: the SettingInfiniband

-> m Text

Returns: the parent interface name

Returns the parent interface name for this device, if set.

getTransportMode

settingInfinibandGetTransportMode Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingInfiniband a) 
=> a

setting: the SettingInfiniband

-> m Text

Returns: the IPoIB transport mode

Returns the transport mode for this device. Either 'datagram' or 'connected'.

getVirtualInterfaceName

settingInfinibandGetVirtualInterfaceName Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingInfiniband a) 
=> a

setting: the SettingInfiniband

-> m Text

Returns: the interface name, or Nothing

Returns the interface name created by combining SettingInfiniband:parent and SettingInfiniband:pKey. (If either property is unset, this will return Nothing.)

new

settingInfinibandNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m SettingInfiniband

Returns: the new empty SettingInfiniband object

Creates a new SettingInfiniband object with default values.

Properties

macAddress

If specified, this connection will only apply to the IPoIB device whose permanent MAC address matches. This property does not change the MAC address of the device (i.e. MAC spoofing).

clearSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> m () Source #

Set the value of the “mac-address” property to Nothing. When overloading is enabled, this is equivalent to

clear #macAddress

constructSettingInfinibandMacAddress :: (IsSettingInfiniband o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “mac-address” property. This is rarely needed directly, but it is used by new.

getSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> m Text Source #

Get the value of the “mac-address” property. When overloading is enabled, this is equivalent to

get settingInfiniband #macAddress

setSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> Text -> m () Source #

Set the value of the “mac-address” property. When overloading is enabled, this is equivalent to

set settingInfiniband [ #macAddress := value ]

mtu

If non-zero, only transmit packets of the specified size or smaller, breaking larger packets up into multiple frames.

constructSettingInfinibandMtu :: (IsSettingInfiniband o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “mtu” property. This is rarely needed directly, but it is used by new.

getSettingInfinibandMtu :: (MonadIO m, IsSettingInfiniband o) => o -> m Word32 Source #

Get the value of the “mtu” property. When overloading is enabled, this is equivalent to

get settingInfiniband #mtu

setSettingInfinibandMtu :: (MonadIO m, IsSettingInfiniband o) => o -> Word32 -> m () Source #

Set the value of the “mtu” property. When overloading is enabled, this is equivalent to

set settingInfiniband [ #mtu := value ]

pKey

The InfiniBand p-key to use for this device. A value of -1 means to use the default p-key (aka "the p-key at index 0"). Otherwise, it is a 16-bit unsigned integer, whose high bit 0x8000 is set if it is a "full membership" p-key. The values 0 and 0x8000 are not allowed.

With the p-key set, the interface name is always "$parent.$p_key". Setting "connection.interface-name" to another name is not supported.

Note that kernel will internally always set the full membership bit, although the interface name does not reflect that. Usually the user would want to configure a full membership p-key with 0x8000 flag set.

constructSettingInfinibandPKey :: (IsSettingInfiniband o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “p-key” property. This is rarely needed directly, but it is used by new.

getSettingInfinibandPKey :: (MonadIO m, IsSettingInfiniband o) => o -> m Int32 Source #

Get the value of the “p-key” property. When overloading is enabled, this is equivalent to

get settingInfiniband #pKey

setSettingInfinibandPKey :: (MonadIO m, IsSettingInfiniband o) => o -> Int32 -> m () Source #

Set the value of the “p-key” property. When overloading is enabled, this is equivalent to

set settingInfiniband [ #pKey := value ]

parent

The interface name of the parent device of this device. Normally Nothing, but if the SettingInfiniband:p_key property is set, then you must specify the base device by setting either this property or SettingInfiniband:macAddress.

clearSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> m () Source #

Set the value of the “parent” property to Nothing. When overloading is enabled, this is equivalent to

clear #parent

constructSettingInfinibandParent :: (IsSettingInfiniband o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “parent” property. This is rarely needed directly, but it is used by new.

getSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> m Text Source #

Get the value of the “parent” property. When overloading is enabled, this is equivalent to

get settingInfiniband #parent

setSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> Text -> m () Source #

Set the value of the “parent” property. When overloading is enabled, this is equivalent to

set settingInfiniband [ #parent := value ]

transportMode

The IP-over-InfiniBand transport mode. Either "datagram" or "connected".

clearSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> m () Source #

Set the value of the “transport-mode” property to Nothing. When overloading is enabled, this is equivalent to

clear #transportMode

constructSettingInfinibandTransportMode :: (IsSettingInfiniband o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “transport-mode” property. This is rarely needed directly, but it is used by new.

getSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> m Text Source #

Get the value of the “transport-mode” property. When overloading is enabled, this is equivalent to

get settingInfiniband #transportMode

setSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> Text -> m () Source #

Set the value of the “transport-mode” property. When overloading is enabled, this is equivalent to

set settingInfiniband [ #transportMode := value ]