NVIDIA DRIVE OS Linux API Reference

5.1.3.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ote_storage.h File Reference

Detailed Description

NVIDIA Trusted Little Kernel Interface: Storage Services

Description: Declares data types and functions for TLK storage services.

Definition in file ote_storage.h.

Go to the source code of this file.

Macros

#define TE_STORAGE_OBJID_MAX_LEN   64
 Defines the maximum file name length in bytes. More...
 

Typedefs

typedef struct
__te_storage_object * 
te_storage_object_t
 

Enumerations

enum  te_storage_flags_t {
  OTE_STORAGE_FLAG_ACCESS_READ = 0x1,
  OTE_STORAGE_FLAG_ACCESS_WRITE = 0x2,
  OTE_STORAGE_FLAG_ACCESS_WRITE_META = 0x4
}
 Defines file access flags. More...
 
enum  te_storage_whence_t {
  OTE_STORAGE_SEEK_WHENCE_SET = 0x1,
  OTE_STORAGE_SEEK_WHENCE_CUR = 0x2,
  OTE_STORAGE_SEEK_WHENCE_END = 0x3
}
 Defines seek whence options. More...
 

Functions

te_error_t te_create_storage_object (char *name, te_storage_flags_t flags, te_storage_object_t *obj)
 Creates a persistent storage object handle. More...
 
te_error_t te_open_storage_object (char *name, te_storage_flags_t flags, te_storage_object_t *obj)
 Opens a persistent storage object. More...
 
te_error_t te_read_storage_object (te_storage_object_t obj, void *buffer, uint32_t size, uint32_t *count)
 Reads data from a persistent object. More...
 
te_error_t te_write_storage_object (te_storage_object_t obj, const void *buffer, uint32_t size)
 Writes data to the persistent object. More...
 
te_error_t te_get_storage_object_size (te_storage_object_t obj, uint32_t *size)
 Gets the size of the data stored in the persistent object. More...
 
te_error_t te_seek_storage_object (te_storage_object_t obj, int32_t offset, te_storage_whence_t whence)
 Seeks to the specified offset in the persistent object. More...
 
te_error_t te_trunc_storage_object (te_storage_object_t obj, uint32_t size)
 Truncates the data stored in the persistent object to the specified size. More...
 
te_error_t te_delete_storage_object (te_storage_object_t obj)
 Deletes a persistent object. More...
 
te_error_t te_delete_named_storage_object (const char *name)
 Deletes a persistent object by name. More...
 
te_error_t te_close_storage_object (te_storage_object_t obj)
 Closes the persistent object handle. More...