|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
51 #ifndef DEVICE_DEVICEINFO_PROCESSSTATUS_PROCESS_H_
52 #define DEVICE_DEVICEINFO_PROCESSSTATUS_PROCESS_H_
55 #include "hostIf_tr69ReqHandler.h"
56 #include "hostIf_utils.h"
58 #define _COMMAND_LENGTH 256
59 #define _STATE_LENGTH 16
60 #define PROCESS_STATE_RUNNING "Running"
61 #define PROCESS_STATE_SLEEPING "Sleeping"
62 #define PROCESS_STATE_STOPPED "Stopped"
63 #define PROCESS_STATE_ZOMBIE "Zombie"
76 char cCommand[_COMMAND_LENGTH];
78 unsigned int uiPriority;
79 unsigned int uiCpuTime;
80 char cState[_STATE_LENGTH];
111 static GHashTable *ifHash;
113 static GMutex *m_mutex;
115 static GMutex *m_libproc_lock;
122 bool bCalledProcessPid;
123 bool bCalledProcessCommand;
124 bool bCalledProcessSize;
125 bool bCalledProcessPriority;
126 bool bCalledProcessCpuTime;
127 bool bCalledProcessState;
130 unsigned int backupProcessPid;
131 char backupProcessCommand[_COMMAND_LENGTH];
132 unsigned int backupProcessSize;
133 unsigned int backupProcessPriority;
134 unsigned int backupProcessCpuTime;
135 char backupProcessState[_STATE_LENGTH];
143 static GList* getAllInstances();
145 static void closeAllInstances();
147 static void getLock();
149 static void releaseLock();
151 static GMutex* initProcpsLock();
int get_Device_DeviceInfo_ProcessStatus_Process_CPUTime(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function provides The amount of time spent by the process taking the cpu.
int get_Device_DeviceInfo_ProcessStatus_Process_PID(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function provides the Process Identifier.
This class provides the interface for getting device processor information.
~hostIf_DeviceProcess()
Class destructor.
hostIf_DeviceProcess(int _dev_id)
Class Constructor of the class hostIf_DeviceProcess.
int get_Device_DeviceInfo_ProcessStatus_Process_Priority(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function provides The priority of the process.
static int getNumOfProcessEntries(HOSTIF_MsgData_t *)
EProcessMembers
These values are the members of the process.
int get_Device_DeviceInfo_ProcessStatus_Process_Size(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function provides The Size in Kilo bytes of the memory occupied by process.
These values are the members variables of the DeviceProcessStatusProcess structure.
int get_Device_DeviceInfo_ProcessStatus_Process_State(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function provides The current state of the process.
struct Device_DeviceInfo_ProcessStatus_Process DeviceProcessStatusProcess
These values are the members variables of the DeviceProcessStatusProcess structure.
int get_Device_DeviceInfo_ProcessStatus_Process_Command(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function provides The name of the command that has caused the process to exist.