44 #ifndef __OTE_STORAGE_H
45 #define __OTE_STORAGE_H
50 #define TE_STORAGE_OBJID_MAX_LEN 64
53 struct __te_storage_object;
106 uint32_t size, uint32_t *count);
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.
te_storage_whence_t
Defines seek whence options.
Apply specified offset to current end of file.
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.
te_error_t te_delete_named_storage_object(const char *name)
Deletes a persistent object by name.
Apply specified offset to start of file.
te_error_t te_open_storage_object(char *name, te_storage_flags_t flags, te_storage_object_t *obj)
Opens a persistent storage object.
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.
te_error_t te_write_storage_object(te_storage_object_t obj, const void *buffer, uint32_t size)
Writes data to the persistent object.
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.
NVIDIA Trusted Little Kernel Interface: Common Declarations
Apply specified offset to current position in file.
int uint32_t uint32_t uint32_t const uint32_t const uint32_t const uint32_t const uint64_t uint32_t uint32_t flags
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.
te_storage_flags_t
Defines file access flags.
te_error_t te_delete_storage_object(te_storage_object_t obj)
Deletes a persistent object.
te_error_t te_close_storage_object(te_storage_object_t obj)
Closes the persistent object handle.
struct __te_storage_object * te_storage_object_t
te_error_t
Defines Open Trusted Environment (OTE) error codes.