NVIDIA DRIVE OS Linux SDK API Reference

6.0.3 Release
nvscisync.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA Corporation is strictly prohibited.
9  */
18 #ifndef INCLUDED_NVSCISYNC_H
19 #define INCLUDED_NVSCISYNC_H
20 
149 #if !defined (__cplusplus)
150 #include <stddef.h>
151 #include <stdbool.h>
152 #include <stdint.h>
153 #endif
154 
155 #include <nvscierror.h>
156 #include <nvsciipc.h>
157 
158 #if defined (__cplusplus)
159 extern "C"
160 {
161 #endif
162 
168 static const uint32_t NvSciSyncMajorVersion = 2U;
169 
175 static const uint32_t NvSciSyncMinorVersion = 3U;
176 
182 static const int64_t NvSciSyncFenceMaxTimeout = (0x7fffffffffffffff / 1000);
183 
195 typedef struct NvSciSyncModuleRec* NvSciSyncModule;
196 
207 typedef struct NvSciSyncCpuWaitContextRec* NvSciSyncCpuWaitContext;
208 
240 typedef struct {
241  uint64_t payload[6];
243 
251 
258 typedef struct {
259  uint64_t payload[7];
261 
268 typedef struct {
270  uint64_t payload[128];
272 
295 typedef struct NvSciSyncObjRec* NvSciSyncObj;
296 
301 typedef const struct NvSciSyncObjRec* NvSciSyncObjConst;
302 
314 typedef struct NvSciSyncAttrListRec* NvSciSyncAttrList;
315 
321 typedef enum {
326  NvSciSyncAccessPerm_WaitOnly = (uint64_t)1U << 0U,
331  NvSciSyncAccessPerm_SignalOnly = (uint64_t)1U << 1U,
343  NvSciSyncAccessPerm_Auto = (uint64_t)1U << 63U,
345 
357 typedef enum {
366 
372 typedef struct {
374  uint64_t timestamp;
376  uint32_t statusEngine ;
378  uint16_t subframe;
382  uint16_t status;
384  uint8_t padding[240];
385 } __attribute__((packed)) NvSciSyncTaskStatus;
386 
399 typedef enum {
502 
510 typedef struct {
516  const void* value;
518  size_t len;
520 
551  NvSciSyncModule* newModule);
552 
588  NvSciSyncModule module);
589 
621  NvSciSyncModule module,
622  NvSciSyncCpuWaitContext* newContext);
623 
648  NvSciSyncCpuWaitContext context);
649 
681  NvSciSyncModule module,
682  NvSciSyncAttrList* attrList);
683 
708  NvSciSyncAttrList attrList);
709 
735  NvSciSyncAttrList attrList,
736  bool* isReconciled);
737 
786  NvSciSyncAttrList reconciledAttrList,
787  const NvSciSyncAttrList inputUnreconciledAttrListArray[],
788  size_t inputUnreconciledAttrListCount,
789  bool* isReconciledListValid);
790 
836  NvSciSyncAttrList attrList,
837  const NvSciSyncAttrKeyValuePair* pairArray,
838  size_t pairCount);
839 
879  NvSciSyncAttrList attrList,
880  NvSciSyncAttrKeyValuePair* pairArray,
881  size_t pairCount);
882 
904  NvSciSyncAttrList attrList);
905 
956  const NvSciSyncAttrList inputUnreconciledAttrListArray[],
957  size_t inputUnreconciledAttrListCount,
958  NvSciSyncAttrList* newUnreconciledAttrList);
959 
997  NvSciSyncAttrList origAttrList,
998  NvSciSyncAttrList* newAttrList);
999 
1045  NvSciSyncAttrList attrList,
1046  size_t slotIndex,
1047  NvSciSyncAttrKeyValuePair* pairArray,
1048  size_t pairCount);
1049 
1058 #if (NV_IS_SAFETY == 0)
1059 
1065 #endif
1066 
1076 #if (NV_IS_SAFETY == 0)
1077 
1082 #else
1083 
1086 #endif
1087 
1100 #if (NV_IS_SAFETY == 0)
1101 
1103 #endif
1104 
1131  const NvSciSyncAttrList inputArray[],
1132  size_t inputCount,
1133  NvSciSyncAttrList* newReconciledList,
1134  NvSciSyncAttrList* newConflictList);
1135 
1136 #if (NV_IS_SAFETY == 0)
1137 
1166  NvSciSyncAttrList attrList,
1167  void** buf,
1168  size_t* len);
1169 #endif
1170 
1215 #if (NV_IS_SAFETY == 0)
1216 
1219 #endif
1220 
1239  const NvSciSyncAttrList unreconciledAttrListArray[],
1240  size_t unreconciledAttrListCount,
1241  NvSciIpcEndpoint ipcEndpoint,
1242  void** descBuf,
1243  size_t* descLen);
1244 
1286  const NvSciSyncAttrList reconciledAttrList,
1287  NvSciIpcEndpoint ipcEndpoint,
1288  void** descBuf,
1289  size_t* descLen);
1290 
1335  NvSciSyncModule module,
1336  NvSciIpcEndpoint ipcEndpoint,
1337  const void* descBuf,
1338  size_t descLen,
1339  NvSciSyncAttrList* importedUnreconciledAttrList);
1340 
1412  NvSciSyncModule module,
1413  NvSciIpcEndpoint ipcEndpoint,
1414  const void* descBuf,
1415  size_t descLen,
1416  const NvSciSyncAttrList inputUnreconciledAttrListArray[],
1417  size_t inputUnreconciledAttrListCount,
1418  NvSciSyncAttrList* importedReconciledAttrList);
1419 
1444  void* descBuf);
1445 
1471 void NvSciSyncFenceClear(
1472  NvSciSyncFence* syncFence);
1473 
1510  const NvSciSyncFence* srcSyncFence,
1511  NvSciSyncFence* dstSyncFence);
1512 
1552  NvSciSyncAttrList reconciledList,
1553  NvSciSyncObj* syncObj);
1554 
1592  NvSciSyncObj syncObj,
1593  NvSciSyncObj* dupObj);
1594 
1626  NvSciSyncObj syncObj,
1627  NvSciSyncAttrList* syncAttrList);
1628 
1662 void NvSciSyncObjFree(
1663  NvSciSyncObj syncObj);
1664 
1701 #if (NV_L4T == 1)
1702 
1706 #endif
1707 
1724  NvSciSyncObj syncObj,
1725  NvSciSyncAccessPerm permissions,
1726  NvSciIpcEndpoint ipcEndpoint,
1728 
1793  NvSciIpcEndpoint ipcEndpoint,
1794  const NvSciSyncObjIpcExportDescriptor* desc,
1795  NvSciSyncAttrList inputAttrList,
1796  NvSciSyncAccessPerm permissions,
1797  int64_t timeoutUs,
1798  NvSciSyncObj* syncObj);
1799 
1837  const NvSciSyncFence* syncFence,
1838  NvSciIpcEndpoint ipcEndpoint,
1840 
1881  NvSciSyncObj syncObj,
1883  NvSciSyncFence* syncFence);
1884 
1900 #if (NV_IS_SAFETY == 0)
1901 
1904 #endif
1905 
1926  NvSciSyncObj syncObj,
1927  NvSciSyncFence* syncFence);
1928 
1933 #if (NV_IS_SAFETY == 0)
1934 
1937 #endif
1938 
1966  NvSciSyncObj syncObj);
1967 
2022  const NvSciSyncFence* syncFence,
2023  NvSciSyncCpuWaitContext context,
2024  int64_t timeoutUs);
2025 
2061  const NvSciSyncFence* syncFence,
2062  uint64_t* timestampUS);
2063 
2093  const NvSciSyncFence* syncFence,
2094  NvSciSyncTaskStatus* taskStatus);
2095 
2096 /*
2097  * NvSciSync Utility functions
2098  */
2099 
2136  NvSciSyncAttrList attrList,
2137  NvSciSyncAttrKey key,
2138  const void** value,
2139  size_t* len);
2140 
2158 #if (NV_IS_SAFETY == 0)
2159 
2165 #else
2166 
2169 #endif
2170 
2183 #if (NV_IS_SAFETY == 0)
2184 
2186 #endif
2187 
2212  const NvSciSyncAttrList inputArray[],
2213  size_t inputCount,
2214  NvSciSyncObj* syncObj,
2215  NvSciSyncAttrList* newConflictList);
2216 
2269  NvSciSyncObj syncObj,
2270  NvSciSyncAccessPerm permissions,
2271  NvSciIpcEndpoint ipcEndpoint,
2272  void** attrListAndObjDesc,
2273  size_t* attrListAndObjDescSize);
2274 
2301  void* attrListAndObjDescBuf);
2302 
2379  NvSciSyncModule module,
2380  NvSciIpcEndpoint ipcEndpoint,
2381  const void* attrListAndObjDesc,
2382  size_t attrListAndObjDescSize,
2383  NvSciSyncAttrList const attrList[],
2384  size_t attrListCount,
2385  NvSciSyncAccessPerm minPermissions,
2386  int64_t timeoutUs,
2387  NvSciSyncObj* syncObj);
2388 
2420 #if (NV_IS_SAFETY == 0)
2421 
2424 #endif
2426  uint32_t majorVer,
2427  uint32_t minorVer,
2428  bool* isCompatible);
2429 
2430 #if defined(__cplusplus)
2431 }
2432 #endif // __cplusplus
2433 
2434 #endif // INCLUDED_NVSCISYNC_H
NvSciSyncFenceClear
void NvSciSyncFenceClear(NvSciSyncFence *syncFence)
Frees any resources allocated for the NvSciSyncFence.
NvSciSyncAttrKey_RequireDeterministicFences
@ NvSciSyncAttrKey_RequireDeterministicFences
(bool, inout) Specifies if deterministic primitives are required.
Definition: nvscisync.h:498
NvSciError
NvSciError
Return/error codes for all NvSci functions.
Definition: nvscierror.h:45
NvSciSyncTaskStatus::subframe
uint16_t subframe
unused
Definition: nvscisync.h:378
NvSciSyncAttrListAndObjFreeDesc
void NvSciSyncAttrListAndObjFreeDesc(void *attrListAndObjDescBuf)
Frees an NvSciSyncIpcExportAttrListAndObj descriptor returned by a successful call to NvSciSyncIpcExp...
NvSciSyncIpcImportFence
NvSciError NvSciSyncIpcImportFence(NvSciSyncObj syncObj, const NvSciSyncFenceIpcExportDescriptor *desc, NvSciSyncFence *syncFence)
Fills in the NvSciSyncFence based on the input binary descriptor.
NvSciSyncAttrKey_NeedCpuAccess
@ NvSciSyncAttrKey_NeedCpuAccess
(bool, inout) Specifies if CPU access is required.
Definition: nvscisync.h:422
NvSciSyncObjIpcExport
NvSciError NvSciSyncObjIpcExport(NvSciSyncObj syncObj, NvSciSyncAccessPerm permissions, NvSciIpcEndpoint ipcEndpoint, NvSciSyncObjIpcExportDescriptor *desc)
Exports an NvSciSyncObj into an NvSciIpc-transferable object binary descriptor.
NvSciSyncObjIpcImport
NvSciError NvSciSyncObjIpcImport(NvSciIpcEndpoint ipcEndpoint, const NvSciSyncObjIpcExportDescriptor *desc, NvSciSyncAttrList inputAttrList, NvSciSyncAccessPerm permissions, int64_t timeoutUs, NvSciSyncObj *syncObj)
Creates and returns an NvSciSyncObj based on the supplied binary descriptor describing an exported Nv...
NvSciSyncAttrListFreeDesc
void NvSciSyncAttrListFreeDesc(void *descBuf)
Frees an exported NvSciSyncAttrList descriptor previously returned by any NvSciSyncAttrList exporting...
NvSciSyncTaskStatus_Failure
@ NvSciSyncTaskStatus_Failure
The task has failed.
Definition: nvscisync.h:361
NvSciSyncIpcImportAttrListAndObj
NvSciError NvSciSyncIpcImportAttrListAndObj(NvSciSyncModule module, NvSciIpcEndpoint ipcEndpoint, const void *attrListAndObjDesc, size_t attrListAndObjDescSize, NvSciSyncAttrList const attrList[], size_t attrListCount, NvSciSyncAccessPerm minPermissions, int64_t timeoutUs, NvSciSyncObj *syncObj)
Creates an NvSciSyncObj based on the supplied binary descriptor returned from a successful call to Nv...
NvSciSyncAccessPerm_SignalOnly
@ NvSciSyncAccessPerm_SignalOnly
This represents the capability to advance an NvSciSyncObj to its next point on its sync timeline.
Definition: nvscisync.h:331
NvSciSyncAttrKeyValuePair::len
size_t len
Length of the value in bytes.
Definition: nvscisync.h:518
NvSciSyncTaskStatusVal
NvSciSyncTaskStatusVal
Status of the signaler's task that signals a particular NvSciSyncFence.
Definition: nvscisync.h:357
NvSciSyncAttrKey_LowerBound
@ NvSciSyncAttrKey_LowerBound
Specifies the lower bound - for NvSciSync internal use only.
Definition: nvscisync.h:401
NvSciSyncTaskStatus_Invalid
@ NvSciSyncTaskStatus_Invalid
The signaler did not report any task status.
Definition: nvscisync.h:364
NvSciSyncCpuWaitContextFree
void NvSciSyncCpuWaitContextFree(NvSciSyncCpuWaitContext context)
Releases the NvSciSyncCpuWaitContext.
NvSciSyncAttrListSetAttrs
NvSciError NvSciSyncAttrListSetAttrs(NvSciSyncAttrList attrList, const NvSciSyncAttrKeyValuePair *pairArray, size_t pairCount)
Sets the values for NvSciSyncAttrKey(s) in slot 0 of the input NvSciSyncAttrList.
NvSciSyncAttrKeyValuePair::attrKey
NvSciSyncAttrKey attrKey
NvSciSyncAttrKey for which value needs to be set/retrieved.
Definition: nvscisync.h:514
NvSciSyncIpcExportFence
NvSciError NvSciSyncIpcExportFence(const NvSciSyncFence *syncFence, NvSciIpcEndpoint ipcEndpoint, NvSciSyncFenceIpcExportDescriptor *desc)
Exports the input NvSciSyncFence into a binary descriptor shareable across the NvSciIpc channel.
NvSciSyncAttrListIpcImportReconciled
NvSciError NvSciSyncAttrListIpcImportReconciled(NvSciSyncModule module, NvSciIpcEndpoint ipcEndpoint, const void *descBuf, size_t descLen, const NvSciSyncAttrList inputUnreconciledAttrListArray[], size_t inputUnreconciledAttrListCount, NvSciSyncAttrList *importedReconciledAttrList)
Translates an exported reconciled NvSciSyncAttrList descriptor (potentially received from any process...
NvSciSyncMajorVersion
static const uint32_t NvSciSyncMajorVersion
NvSciSync major version number.
Definition: nvscisync.h:168
NvSciSyncAttrList
struct NvSciSyncAttrListRec * NvSciSyncAttrList
A container constituting an NvSciSyncAttrList which contains:
Definition: nvscisync.h:314
NvSciSyncCpuWaitContextAlloc
NvSciError NvSciSyncCpuWaitContextAlloc(NvSciSyncModule module, NvSciSyncCpuWaitContext *newContext)
Allocates a new NvSciSyncCpuWaitContext.
NvSciSyncObjFree
void NvSciSyncObjFree(NvSciSyncObj syncObj)
Destroys a valid NvSciSyncObj and frees any resources that were allocated for it.
NvSciSyncAttrKey_WaiterRequireTimestamps
@ NvSciSyncAttrKey_WaiterRequireTimestamps
(bool, inout) Specifies if timestamps are required.
Definition: nvscisync.h:486
NvSciSyncAttrKeyValuePair::value
const void * value
Memory which contains the value corresponding to the key.
Definition: nvscisync.h:516
NvSciSyncFenceMaxTimeout
static const int64_t NvSciSyncFenceMaxTimeout
Maximum supported timeout value.
Definition: nvscisync.h:182
NvSciSyncObjGenerateFence
NvSciError NvSciSyncObjGenerateFence(NvSciSyncObj syncObj, NvSciSyncFence *syncFence)
Generates next point on sync timeline of an NvSciSyncObj and fills in the supplied NvSciSyncFence obj...
NvSciSyncAttrListGetAttrs
NvSciError NvSciSyncAttrListGetAttrs(NvSciSyncAttrList attrList, NvSciSyncAttrKeyValuePair *pairArray, size_t pairCount)
Gets the value of NvSciSyncAttrKey from slot 0 of the input NvSciSyncAttrList.
NvSciSyncAttrListIsReconciled
NvSciError NvSciSyncAttrListIsReconciled(NvSciSyncAttrList attrList, bool *isReconciled)
Checks whether the NvSciSyncAttrList is reconciled.
NvSciSyncFenceGetTimestamp
NvSciError NvSciSyncFenceGetTimestamp(const NvSciSyncFence *syncFence, uint64_t *timestampUS)
Read the timestamp associated with the NvSciSyncFence.
NvSciSyncObjConst
const struct NvSciSyncObjRec * NvSciSyncObjConst
A reference, that is not modifiable, to a particular Synchronization Object.
Definition: nvscisync.h:301
NvSciSyncModuleClose
void NvSciSyncModuleClose(NvSciSyncModule module)
Closes an instance of the NvSciSyncModule that was obtained through an earlier call to NvSciSyncModul...
NvSciSyncAccessPerm_WaitOnly
@ NvSciSyncAccessPerm_WaitOnly
This represents the capability to wait on an NvSciSyncObj as it progresses through points on its sync...
Definition: nvscisync.h:326
NvSciSyncObjIpcExportDescriptor
Defines the exported form of NvSciSyncObj intended to be shared across an NvSciIpc channel.
Definition: nvscisync.h:268
NvSciSyncTaskStatus::statusEngine
uint32_t statusEngine
unused
Definition: nvscisync.h:376
nvsciipc.h
NVIDIA Software Communications Interface (SCI) : NvSci Inter-Process Communication
NvSciSyncAttrListGetAttr
NvSciError NvSciSyncAttrListGetAttr(NvSciSyncAttrList attrList, NvSciSyncAttrKey key, const void **value, size_t *len)
Gets the attribute value from the slot 0 of the passed NvSciSyncAttrList with the given NvSciSyncAttr...
NvSciSyncAttrKey
NvSciSyncAttrKey
Describes the NvSciSync public attribute keys holding the corresponding values specifying synchroniza...
Definition: nvscisync.h:399
NvSciSyncObjAlloc
NvSciError NvSciSyncObjAlloc(NvSciSyncAttrList reconciledList, NvSciSyncObj *syncObj)
Allocates and initializes a NvSciSyncObj that meets all the constraints specified in the given reconc...
NvSciIpcEndpoint
uint64_t NvSciIpcEndpoint
Handle to the NvSciIpc endpoint.
Definition: nvsciipc.h:230
NvSciSyncObjDup
NvSciError NvSciSyncObjDup(NvSciSyncObj syncObj, NvSciSyncObj *dupObj)
Creates a new NvSciSyncObj holding a reference to the original resources to which the input NvSciSync...
NvSciSyncCheckVersionCompatibility
NvSciError NvSciSyncCheckVersionCompatibility(uint32_t majorVer, uint32_t minorVer, bool *isCompatible)
Checks if the loaded library version is compatible with the version the application was compiled agai...
NvSciSyncAttrListIpcExportUnreconciled
NvSciError NvSciSyncAttrListIpcExportUnreconciled(const NvSciSyncAttrList unreconciledAttrListArray[], size_t unreconciledAttrListCount, NvSciIpcEndpoint ipcEndpoint, void **descBuf, size_t *descLen)
Transforms the input unreconciled NvSciSyncAttrList(s) to an exportable unreconciled NvSciSyncAttrLis...
NvSciSyncAttrKeyValuePair
This structure defines a key/value pair used to get or set the NvSciSyncAttrKey(s) and their correspo...
Definition: nvscisync.h:510
NvSciSyncAttrKey_RequiredPerm
@ NvSciSyncAttrKey_RequiredPerm
(NvSciSyncAccessPerm, inout) Specifies the required access permissions.
Definition: nvscisync.h:430
NvSciSyncAttrListIpcImportUnreconciled
NvSciError NvSciSyncAttrListIpcImportUnreconciled(NvSciSyncModule module, NvSciIpcEndpoint ipcEndpoint, const void *descBuf, size_t descLen, NvSciSyncAttrList *importedUnreconciledAttrList)
Transforms an exported unreconciled NvSciSyncAttrList descriptor (potentially received from any proce...
NvSciSyncMinorVersion
static const uint32_t NvSciSyncMinorVersion
NvSciSync minor version number.
Definition: nvscisync.h:175
NvSciSyncAccessPerm
NvSciSyncAccessPerm
Describes NvSciSyncObj access permissions.
Definition: nvscisync.h:321
NvSciSyncObjSignal
NvSciError NvSciSyncObjSignal(NvSciSyncObj syncObj)
Signals the NvSciSyncObj using the reconciled primitive that was allocated along with the NvSciSyncOb...
NvSciSyncAttrListReconcile
NvSciError NvSciSyncAttrListReconcile(const NvSciSyncAttrList inputArray[], size_t inputCount, NvSciSyncAttrList *newReconciledList, NvSciSyncAttrList *newConflictList)
Reconciles the input unreconciled NvSciSyncAttrLists into a new reconciled NvSciSyncAttrList.
NvSciSyncFenceWait
NvSciError NvSciSyncFenceWait(const NvSciSyncFence *syncFence, NvSciSyncCpuWaitContext context, int64_t timeoutUs)
Performs a synchronous wait on the NvSciSyncFence object until the NvSciSyncFence has been signaled o...
NvSciSyncAccessPerm_Auto
@ NvSciSyncAccessPerm_Auto
Usage of Auto permissions is restricted only for export/import APIs and shouldn't be used as valid va...
Definition: nvscisync.h:343
NvSciSyncModuleOpen
NvSciError NvSciSyncModuleOpen(NvSciSyncModule *newModule)
Initializes and returns a new NvSciSyncModule with no NvSciSyncAttrLists, NvSciSyncCpuWaitContexts,...
NvSciSyncAttrListReconcileAndObjAlloc
NvSciError NvSciSyncAttrListReconcileAndObjAlloc(const NvSciSyncAttrList inputArray[], size_t inputCount, NvSciSyncObj *syncObj, NvSciSyncAttrList *newConflictList)
Reconciles the input unreconciled NvSciSyncAttrList(s) into a new reconciled NvSciSyncAttrList.
NvSciSyncAttrListDebugDump
NvSciError NvSciSyncAttrListDebugDump(NvSciSyncAttrList attrList, void **buf, size_t *len)
Dumps the NvSciSyncAttrList into a binary descriptor.
NvSciSyncFence
Defines the opaque NvSciSyncFence.
Definition: nvscisync.h:240
NvSciSyncTaskStatus
A single slot in the task status buffer.
Definition: nvscisync.h:372
NvSciSyncObjGetAttrList
NvSciError NvSciSyncObjGetAttrList(NvSciSyncObj syncObj, NvSciSyncAttrList *syncAttrList)
Retrieves the reconciled NvSciSyncAttrList associated with an input NvSciSyncObj.
NvSciSyncFenceGetTaskStatus
NvSciError NvSciSyncFenceGetTaskStatus(const NvSciSyncFence *syncFence, NvSciSyncTaskStatus *taskStatus)
Reads the task status associated with the NvSciSyncFence and stores it in the user provided out param...
NvSciSyncAttrListValidateReconciled
NvSciError NvSciSyncAttrListValidateReconciled(NvSciSyncAttrList reconciledAttrList, const NvSciSyncAttrList inputUnreconciledAttrListArray[], size_t inputUnreconciledAttrListCount, bool *isReconciledListValid)
Validates a reconciled NvSciSyncAttrList against a set of input unreconciled NvSciSyncAttrLists.
NvSciSyncAttrKey_ActualPerm
@ NvSciSyncAttrKey_ActualPerm
(NvSciSyncAccessPerm, out) Actual permission granted after reconciliation.
Definition: nvscisync.h:461
NvSciSyncTaskStatus::status
uint16_t status
A status word filled with NvSciSyncTaskStatusVal values.
Definition: nvscisync.h:382
NvSciSyncAttrListSlotGetAttrs
NvSciError NvSciSyncAttrListSlotGetAttrs(NvSciSyncAttrList attrList, size_t slotIndex, NvSciSyncAttrKeyValuePair *pairArray, size_t pairCount)
Gets the value(s) of NvSciSyncAttrKey(s) from an NvSciSyncAttrList at given slot index in a multi-slo...
NvSciSyncAttrListFree
void NvSciSyncAttrListFree(NvSciSyncAttrList attrList)
Frees the NvSciSyncAttrList and removes its association with the NvSciSyncModule with which it was cr...
NvSciSyncAttrListGetSlotCount
size_t NvSciSyncAttrListGetSlotCount(NvSciSyncAttrList attrList)
Gets the slot count of the given NvSciSyncAttrList.
NvSciSyncModule
struct NvSciSyncModuleRec * NvSciSyncModule
Represents an instance of the NvSciSyncModule.
Definition: nvscisync.h:195
nvscierror.h
NvSciSyncAttrKey_UpperBound
@ NvSciSyncAttrKey_UpperBound
Specifies the upper bound - for NvSciSync internal use only.
Definition: nvscisync.h:500
NvSciSyncFenceInitializer
static const NvSciSyncFence NvSciSyncFenceInitializer
Defines the value used to zero-initialize the NvSciSyncFence object.
Definition: nvscisync.h:250
NvSciSyncObj
struct NvSciSyncObjRec * NvSciSyncObj
A Synchronization Object is a container holding the reconciled NvSciSyncAttrList defining constraints...
Definition: nvscisync.h:295
NvSciSyncAttrListCreate
NvSciError NvSciSyncAttrListCreate(NvSciSyncModule module, NvSciSyncAttrList *attrList)
Creates a new, single-slot unreconciled NvSciSyncAttrList associated with the input NvSciSyncModule w...
NvSciSyncTaskStatus::timestamp
uint64_t timestamp
unused
Definition: nvscisync.h:374
NvSciSyncAttrListAppendUnreconciled
NvSciError NvSciSyncAttrListAppendUnreconciled(const NvSciSyncAttrList inputUnreconciledAttrListArray[], size_t inputUnreconciledAttrListCount, NvSciSyncAttrList *newUnreconciledAttrList)
Appends multiple unreconciled NvSciSyncAttrLists together, forming a single new unreconciled NvSciSyn...
NvSciSyncAttrListIpcExportReconciled
NvSciError NvSciSyncAttrListIpcExportReconciled(const NvSciSyncAttrList reconciledAttrList, NvSciIpcEndpoint ipcEndpoint, void **descBuf, size_t *descLen)
Transforms the reconciled NvSciSyncAttrList to an exportable reconciled NvSciSyncAttrList descriptor ...
NvSciSyncFenceIpcExportDescriptor
Defines the exported form of NvSciSyncFence intended to be shared across an NvSciIpc channel.
Definition: nvscisync.h:258
NvSciSyncIpcExportAttrListAndObj
NvSciError NvSciSyncIpcExportAttrListAndObj(NvSciSyncObj syncObj, NvSciSyncAccessPerm permissions, NvSciIpcEndpoint ipcEndpoint, void **attrListAndObjDesc, size_t *attrListAndObjDescSize)
Exports an NvSciSyncAttrList and NvSciSyncObj into an NvSciIpc-transferable object binary descriptor ...
NvSciSyncTaskStatus_Success
@ NvSciSyncTaskStatus_Success
The task has completed successfully.
Definition: nvscisync.h:359
NvSciSyncAttrListClone
NvSciError NvSciSyncAttrListClone(NvSciSyncAttrList origAttrList, NvSciSyncAttrList *newAttrList)
Clones an NvSciSyncAttrList.
NvSciSyncAccessPerm_WaitSignal
@ NvSciSyncAccessPerm_WaitSignal
This represents the capability to advance an NvSciSyncObj to its next point on its sync timeline and ...
Definition: nvscisync.h:337
NvSciSyncAttrKey_WaiterContextInsensitiveFenceExports
@ NvSciSyncAttrKey_WaiterContextInsensitiveFenceExports
(bool, inout) Importing and then exporting an NvSciSyncFenceIpcExportDescriptor has no side effects a...
Definition: nvscisync.h:480
NvSciSyncCpuWaitContext
struct NvSciSyncCpuWaitContextRec * NvSciSyncCpuWaitContext
Represents the right to perform a CPU wait on an NvSciSyncFence.
Definition: nvscisync.h:207
NvSciSyncFenceDup
NvSciError NvSciSyncFenceDup(const NvSciSyncFence *srcSyncFence, NvSciSyncFence *dstSyncFence)
Duplicates the given NvSciSyncFence, such that any wait on duplicated NvSciSyncFence will complete at...