17 #include <tee_internal_api.h> 173 int driver_cancel_handle(
struct usr_drv_info *info,
int sock_conn);
174 int driver_handle(
struct usr_drv_info *info,
int sock_conn);
255 const size_t size,
int prot);
int TEES_RegisterIoctlDesc(struct usr_drv_info *info, unsigned int cmd, struct ioctl_desc *desc)
Register an ioctl() cmd for driver.
int TEES_InitDriver(char *name, struct fops *fops, unsigned int drvid, struct usr_drv_info **info)
Register user driver in /dev/ directory under name, using mask of file operations fops and drvid of s...
int TEES_CompleteRequest(struct drv_info *filp, long ret)
Complete deferred request(read, write, etc.) to driver.
Structure that contains file operations callbacks supported by the driver. If user wants the driver t...
Definition: fops.h:64
Structure that contains information describing the driver.
Definition: fops.h:90
int TEES_FiniDriver(struct usr_drv_info *info)
Allow to release driver that was registered by using struct usr_drv_info.
Structure that template for ioctl() parameters parsing.
Definition: tbt.h:75
int TEES_ReleaseDriver(struct usr_drv_info **info) _deprecated_
Allow to release driver that was registered by using struct usr_drv_info.
int TEES_RegisterDriver(char *name, struct fops *fops, unsigned int drvid, struct usr_drv_info **info) _deprecated_
Register user driver in /dev/ directory under name, using mask of file operations fops and drvid of s...
void * TEES_AcquireUserBuffer(struct drv_info *filp, uint64_t addr, const size_t size, int prot)
Get shared mapped area to use as buffer. this API can not be used in read()/write() cmd for driver...
int TEES_ReleaseUserBuffer(const void *addr, const size_t size)
Deletes the shared mapped area for the specified address range.