agileRTOS (zrtos)  Version 0.8.0 (ghostbuster)
zero.h File Reference
#include <zrtos/vfs_module.h>
#include <zrtos/mem.h>
Include dependency graph for zero.h:

Go to the source code of this file.

Functions

zrtos_error_t zrtos_vfs_module_zero__on_read (zrtos_vfs_file_t *thiz, char *path, void *buf, size_t len, zrtos_vfs_offset_t offset, size_t *ret)
 
 ZRTOS_VFS_PLUGIN__INIT (zero, ZRTOS_VFS_PLUGIN__0_ON_OPEN_DEFAULT() ZRTOS_VFS_PLUGIN__1_ON_CLOSE_DEFAULT() ZRTOS_VFS_PLUGIN__2_ON_MOUNT_DEFAULT() ZRTOS_VFS_PLUGIN__3_ON_UMOUNT_DEFAULT() ZRTOS_VFS_PLUGIN__4_ON_READ(zrtos_vfs_module_zero__on_read) ZRTOS_VFS_PLUGIN__5_ON_WRITE_DEFAULT() ZRTOS_VFS_PLUGIN__6_ON_CAN_READ_DEFAULT() ZRTOS_VFS_PLUGIN__7_ON_CAN_WRITE_DEFAULT() ZRTOS_VFS_PLUGIN__8_ON_SEEK_DEFAULT() ZRTOS_VFS_PLUGIN__9_ON_IOCTL_DEFAULT())
 

Function Documentation

◆ zrtos_vfs_module_zero__on_read()

zrtos_error_t zrtos_vfs_module_zero__on_read ( zrtos_vfs_file_t thiz,
char *  path,
void *  buf,
size_t  len,
zrtos_vfs_offset_t  offset,
size_t ret 
)

Definition at line 18 of file zero.h.

25  {
26  zrtos_mem__zero(buf,len);
27  *ret = len;
28  return ZRTOS_ERROR__SUCCESS;
29 }
void zrtos_mem__zero(void *dest, size_t len)
Definition: mem.h:144
Successful program execution status.
Definition: error.h:22
Here is the call graph for this function:

◆ ZRTOS_VFS_PLUGIN__INIT()