Skip to content
Commit a9a909c5 authored by Chris Friedt's avatar Chris Friedt Committed by Anas Nashif
Browse files

fdtable: read, write, close: only execute methods if non-NULL



Only invoke vtable methods read, write, and close if they are
non-NULL.

The close() vtable method is optional, so that should not return
an error if zvfs_close() is called and that method is
unimplemented.

Otherwise, if zvfs_read() or zvfs_write() are called and the
corresponding vtable method is unimplemented, fail setting
errno to EIO.

Signed-off-by: default avatarChris Friedt <cfriedt@tenstorrent.com>
parent d1eea369
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment