/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (c) 2014, STMicroelectronics International N.V. */ #ifndef TEE_POBJ_H #define TEE_POBJ_H #include #include #include #include struct tee_pobj { TAILQ_ENTRY(tee_pobj) link; uint32_t refcnt; TEE_UUID uuid; void *obj_id; uint32_t obj_id_len; uint32_t flags; bool temporary; /* Filesystem handling this object */ const struct tee_file_operations *fops; }; TEE_Result tee_pobj_get(TEE_UUID *uuid, void *obj_id, uint32_t obj_id_len, uint32_t flags, bool temporary, const struct tee_file_operations *fops, struct tee_pobj **obj); TEE_Result tee_pobj_release(struct tee_pobj *obj); TEE_Result tee_pobj_rename(struct tee_pobj *obj, void *obj_id, uint32_t obj_id_len); #endif