Platform-Independent User/Kernel Space

Common user/kernel-space implementation declarations for all targets.

These declarations are available to both user-space and kernel-space code.

CUDDLCI_MAX_STR_LEN

Maximum allowed length for Cuddl string variables. (Equivalent to CUDDL_MAX_STR_LEN / CUDDLK_MAX_STR_LEN.)

CUDDLCI_VERSION_MAJOR

Major portion of the version number.

CUDDLCI_VERSION_MINOR

Minor portion of the version number.

CUDDLCI_REVISION_LEVEL

Revision portion of the version number.

struct cuddlci_token

User-space handle to a memregion or eventsrc.

Definition

struct cuddlci_token {
  int device_index;
  int resource_index;
};

Members

device_index

Index of device in device manager array.

resource_index

Index of memregion or eventsrc in device’s array.

Description

Opaque token used internally when claiming and releasing memory regions and event sources.