RDK Documentation (Open Sourced RDK Components)

Description

Data Structures

struct  _IARM_BUS_DISKMgr_EventData_t
 

Macros

#define LOG(...)   printf(__VA_ARGS__)
 
#define IARM_BUS_DISKMGR_NAME   "DISKMgr"
 
#define IARM_BUS_DISKMGR_MAX_LEN   200
 

Typedefs

typedef enum _DISKMgr_EventId_t IARM_Bus_DISKMgr_EventId_t
 
typedef enum _DISKMgr_HDDEvents_t DISKMgr_HDDEvents_t
 
typedef struct _IARM_BUS_DISKMgr_EventData_t IARM_BUS_DISKMgr_EventData_t
 

Enumerations

enum  _DISKMgr_EventId_t
 
enum  _DISKMgr_HDDEvents_t
 

Functions

IARM_Result_t DISKMgr_Start ()
 
IARM_Result_t DISKMgr_Loop (void)
 Listens for component specific events from drivers. More...
 
IARM_Result_t DISKMgr_Stop (void)
 Terminates the Disk manager. More...
 
int main (int argc, char *argv[])
 

Data Structure Documentation

◆ _IARM_BUS_DISKMgr_EventData_t

struct _IARM_BUS_DISKMgr_EventData_t

Data associated with disk events

Definition at line 118 of file diskMgr.h.

Collaboration diagram for _IARM_BUS_DISKMgr_EventData_t:
Collaboration graph
Data Fields
IARM_Bus_DISKMgr_EventId_t id

Harddisk or external disk event

char eventType

DiskMgr_HDDEvents_t event types

char status

Disk added/paired/removed

char model[200]

Disk model

char modelNumber[200]

Model number of the disk

char serialNum[200]

Serial number of the disk

char devicePath[200]

Device node path

char mountPath[200]

Path to which disk is mounted

Macro Definition Documentation

◆ IARM_BUS_DISKMGR_NAME

#define IARM_BUS_DISKMGR_NAME   "DISKMgr"

IARM bus name for Disk manager

Definition at line 100 of file diskMgr.h.

◆ IARM_BUS_DISKMGR_MAX_LEN

#define IARM_BUS_DISKMGR_MAX_LEN   200

Maximum length for strings in the module

Definition at line 101 of file diskMgr.h.

Typedef Documentation

◆ IARM_Bus_DISKMgr_EventId_t

Published Events from disk manager

◆ DISKMgr_HDDEvents_t

Type of event related to disks

◆ IARM_BUS_DISKMgr_EventData_t

Data associated with disk events

Enumeration Type Documentation

◆ _DISKMgr_EventId_t

Published Events from disk manager

Enumerator
IARM_BUS_DISKMGR_EVENT_HWDISK 

Harddisk event

IARM_BUS_DISKMGR_EVENT_EXTHDD 

External disk event

IARM_BUS_DISKMGR_EVENT_MAX 

Max event id

Definition at line 104 of file diskMgr.h.

◆ _DISKMgr_HDDEvents_t

Type of event related to disks

Enumerator
DISKMGR_EVENT_EXTHDD_ON 

Disk is on

DISKMGR_EVENT_EXTHDD_OFF 

Disk is off

DISKMGR_EVENT_EXTHDD_PAIR 

Disk is paired

Definition at line 111 of file diskMgr.h.

Function Documentation

◆ DISKMgr_Loop()

IARM_Result_t DISKMgr_Loop ( void  )

Listens for component specific events from drivers.

Returns
Error code if fails.

Definition at line 54 of file diskMgr.c.

◆ DISKMgr_Stop()

IARM_Result_t DISKMgr_Stop ( void  )

Terminates the Disk manager.

This function disconnects Disk Manager from the iarm bus and terminates it.

Returns
Error code if stop fails.

Definition at line 67 of file diskMgr.c.