Definitions and Data types

Defines

UMS_DEV_NAME

UMS device name

ENTER_UMS_SCHED

Enter UMS mode as UMS scheduler thread

ENTER_UMS_WORK

Enter UMS mode as UMS worker thread

IOCTL_CREATE_UMS_CLIST

Create UMS completion list IOCTL number

IOCTL_ENTER_UMS

Enter UMS mode IOCTL number

IOCTL_UMS_SCHED_DQEVENT

Dequeue UMS scheduler event IOCTL number

IOCTL_DEQUEUE_UMS_CLIST

Dequeue UMS context from completion list IOCTL number

IOCTL_NEXT_UMS_CTX_LIST

Get next completion list UMS context IOCTL number

IOCTL_EXEC_UMS_CTX

Execute UMS worker thread IOCTL number

IOCTL_UMS_YIELD

UMS worker thread yield IOCTL number

IOCTL_EXIT_UMS

Worker thread exit UMS mode IOCTL number

IOCTL_DELETE_UMS_CLIST

Delete UMS completion list IOCTL number

Enums

enum ums_sched_event_type_e

UMS scheduler event type

Values:

enumerator SCHEDULER_STARTUP

UMS scheduler startup event

enumerator THREAD_YIELD

UMS worker yielded event

enumerator THREAD_TERMINATED

UMS worker terminated event

Structs

struct enter_ums_mode_args

struct for enter UMS mode

Public Members

int flags

specify caller UMS mode

ums_comp_list_id_t ums_complist

the completion list to be associated with the caller

struct ums_thread_yield_args

UMS scheduler event associated to a UMS worker thread that yielded

Public Members

pid_t context

UMS context of the worker thread that yielded.

void *scheduler_params

parameter passed from the UMS worker thread.

struct ums_thread_end_args

UMS scheduler event associated to a UMS worker thread that terminated

Public Members

pid_t context

UMS context of the worker thread that terminated.

struct ums_sched_event

UMS scheduler event

Public Members

ums_sched_event_type_t type
struct ums_thread_yield_args yield_params
struct ums_thread_end_args end_params
union ums_sched_event.[anonymous] [anonymous]

UMS scheduler event parameters

struct dequeue_ums_complist_args

Dequeue UMS completion list args

Public Members

ums_comp_list_id_t ums_complist

the completion list from which dequeuying UMS contexts

pid_t ums_context

dequeued UMS context

struct ums_next_context_list_args

Get next UMS context list args

Public Members

pid_t ums_context

current UMS context in the dequeued UMS thread list

pid_t ums_next_context

next UMS context in the dequeued UMS thread list

Typedefs

typedef int ums_comp_list_id_t

UMS completion list id.

typedef enum ums_sched_event_type_e ums_sched_event_type_t

UMS scheduler event type