|
|
NVIDIA DriveOS Linux NSR SDK API Reference
|
7.0.3.0 Release
|
Go to the documentation of this file.
40 #define DUMASTER_PATH "/master"
45 #define PLUGIN_TYPE_INSTALLER "installer"
47 #define PLUGIN_TYPE_CONTROLLER "controller"
49 #define PLUGIN_TYPE_CONTENT_PROVIDER "content_provider"
51 #define PLUGIN_TYPE_FILE_TRANSFORM "file_transform"
53 #define PLUGIN_TYPE_VALIDATOR "validator"
55 #define PLUGIN_TYPE_METADATA_PROVIDER "metadata_provider"
57 #define PLUGIN_TYPE_PERS_CTX_STORE "persistent_ctx_store"
59 #define PLUGIN_TYPE_DEBUG "debug"
70 #define NODE_PLUGIN_TYPE "plugin-type"
72 #define NODE_REQUESTED_RL "requested_rl"
74 #define NODE_CURRENT_RL "current_rl"
76 #define NODE_PERSISTENT_CTX_PATH "persistent_ctx_path"
78 #define NODE_PENDING_RL "pending_rl"
80 #define NODE_STATE "state"
82 #define NODE_STATE_LIST "state.list"
88 #define NODE_PROGRESS "progress"
90 #define NODE_CMD "cmd"
92 #define NODE_CMD_LIST "cmd.list"
94 #define NODE_RESULT "result"
101 #define NOTIFY_NODE_CURRENT_RL "current_rl.notify"
103 #define NOTIFY_NODE_STATE "state.notify"
105 #define NOTIFY_NODE_PENDING_RL "pending_rl.notify"
112 #define NOTIFY_NODE_PROGRESS "progress.notify"
114 #define NOTIFY_NODE_RESULT "result.notify"
121 #define READ_ONLY_ATTR { \
122 .type = DULINK_NODE_TYPE_FILE, \
539 uint8_t numNotifyNodes
576 const char *pMasterPath
613 const char *pContRootVal,
691 const char *pPluginName,
762 const char *pRequestPath,
763 const char *pOriginPath,
834 const char *pRequestPath,
835 const char *pOriginPath,
906 const char *pRequestPath,
907 const char *pOriginPath,
921 #endif // DUPLUGIN_H_
Data structure to enable access in a DU Link callback to a uint8_t requiring thread access protection...
pthread_mutex_t * pMutex
Will be locked before reading from pStr.
uint32_t DULINK_CB_OPERATION
Type of Callback operation.
uint64_t trParamBuf[DUTR_PARAM_BUFLEN/sizeof(uint64_t)]
Used to store transport params to pass into dulinkOpen.
uint8_t * pInt
Integer to be passed to callback context.
DUTR_SEC_TYPE seType
DU Transport security type used to initialize the connection.
DU_RCODE readOnlyStringCB(const char *pRequestPath, const char *pOriginPath, void *pCtx, uint64_t offset, uint64_t length, void *pBuf, DULINK_CB_OPERATION operation, uint64_t *pRetVal)
Callback for read only strings in a DU-Link node.
DU_RCODE exportDULinkNodes(const DULINK_EXPORT_REQS *pDulinkDirs, uint8_t numDirs, const DULINK_EXPORT_REQS *pDulinkFiles, uint8_t numFiles, const DULINK_EXPORT_REQS *pDulinkNotifyNodes, uint8_t numNotifyNodes)
Export DU Link directories, files and notify nodes.
Data structure to enable access in a DU Link callback to a string requiring thread access protection.
DU_RCODE getPluginParent(char *pBuf, uint32_t bufLen)
Get plugin parent path.
pthread_mutex_t * pMutex
Will be locked before reading from pStr.
const char * pStr
String to be passed to callback context.
DUTR_TR_TYPE trType
DU Transport type used to initialize the connection.
struct CTX_LOCK_STR CTX_LOCK_STR
Data structure to enable access in a DU Link callback to a string requiring thread access protection.
Attribute of an DU-Link node.
const char *const * ppStrList
Pointer to array of strings to iterate.
DUTR_TR_TYPE
Defines DU-Transport back-end transport protocols.
DULINK_CONNECTION_TYPE connType
DU Link connection type.
DU_RUN_LEVEL * pRl
Runlevel to be passed to callback context.
DULINK_ATTR attr
DU Link Attribute of node being exported.
uint32_t DU_RCODE
Drive Update error codes.
struct DULINK_CONNECT_INFO DULINK_CONNECT_INFO
Data structure to hold information for single DU Link connection.
DU_RUN_LEVEL
Defines the run level.
DU_RCODE registerToMaster(const char *pMasterPath)
Register a DU Link plugin to DU Master.
@ DULINK_CONNECT_ROUTER
Router.
DULINK_CONNECTION_TYPE
Type of DU Link connection.
struct DULINK_EXPORT_REQS * PDULINK_EXPORT_REQS
void * pCtx
Context for to callback function.
Data structure to enable access in a DU Link callback to a DU_RUN_LEVEL requiring thread access prote...
struct CTX_LOCK_UINT8 * PCTX_LOCK_UINT8
struct CTX_LOCK_UINT8 CTX_LOCK_UINT8
Data structure to enable access in a DU Link callback to a uint8_t requiring thread access protection...
#define DUTR_PARAM_BUFLEN
Defines the buffer size of the input parameters for DU Transport, used by DULINK_CONNECT_INFO.
DUTR_SEC_TYPE
Defines DU-Transport security protocols.
DU_RCODE listNodeCB(const char *pRequestPath, const char *pOriginPath, void *pCtx, uint64_t offset, uint64_t length, void *pBuf, DULINK_CB_OPERATION operation, uint64_t *pRetVal)
Callback for read-only .list nodes.
#define DULINK_MAX_PATH
Maximum string length of a DU Link path.
DU_RCODE replaceContentRoot(char *pStr, const char *pContRootVal, uint64_t bufLen)
Replace $CONTENT_ROOT$ in path string to actual content.
char remotePath[DULINK_MAX_PATH]
Remote path of connection being opened.
DU_RCODE getPluginConnInfo(const char *pPluginName, PDULINK_CONNECT_INFO pInfo)
Get plugin connection info for DU-Link open.
Data structure to hold information for single DU Link connection.
struct DULINK_EXPORT_REQS DULINK_EXPORT_REQS
Data structure to define DU Link node to be exported by a DRIVE Update plugin via exportDULinkNodes.
NVIDIA DRIVE® Update DU-Link library interface.
struct DULINK_CONNECT_INFO * PDULINK_CONNECT_INFO
DULINK_CONNECTION_ROLE connRole
DU Link connection role.
DU_RCODE readOnlyRunlevelCB(const char *pRequestPath, const char *pOriginPath, void *pCtx, uint64_t offset, uint64_t length, void *pBuf, DULINK_CB_OPERATION operation, uint64_t *pRetVal)
Callback for read-only runlevel nodes.
const DULINK_CB cb
Callback function to export.
DUPLUGIN_TYPE
Defines all of the valid DRIVE Update plugin types.
const char * pPath
DU Link path to be exported.
struct CTX_LOCK_RL CTX_LOCK_RL
Data structure to enable access in a DU Link callback to a DU_RUN_LEVEL requiring thread access prote...
DULINK_CONNECTION_ROLE
Role of DU LINK connection.
struct CTX_LIST_STR * PCTX_LIST_STR
DULINK_CB_RCODE(* DULINK_CB)(const char *pRequestPath, const char *pOriginPath, void *pCtx, uint64_t offset, uint64_t length, void *pBuf, DULINK_CB_OPERATION operation, uint64_t *pRetVal)
Callback function registered to handle IO operations of file.
@ DULINK_CONNECT_PLUGIN
Plugin.
Data structure to enable reading a list of values in a DU Link callback.
const uint8_t size
Number of items in the list.
uint32_t refId
RefID of connection returned by DU Link.
pthread_mutex_t * pMutex
Will be locked before reading from pStr.
Data structure to define DU Link node to be exported by a DRIVE Update plugin via exportDULinkNodes.
struct CTX_LIST_STR CTX_LIST_STR
Data structure to enable reading a list of values in a DU Link callback.
struct CTX_LOCK_RL * PCTX_LOCK_RL
uint64_t secParamBuf[DUTR_PARAM_BUFLEN/sizeof(uint64_t)]
Used to store security params to pass into dulinkOpen.
struct CTX_LOCK_STR * PCTX_LOCK_STR