commit | 6f766a0058426272f0c2b17e8cc020969aaa4b40 | [log] [tgz] |
---|---|---|
author | Chris Friedt <cfriedt@tenstorrent.com> | Sat Jun 15 08:27:12 2024 -0400 |
committer | Henrik Brix Andersen <henrik@brixandersen.dk> | Mon Oct 14 13:01:51 2024 +0200 |
tree | 6cb15058b5c6d37b62cb82ef0bbf9cb4a485b5d8 | |
parent | eac7e604c25ac61f733befb65feec719bc61d2f3 [diff] |
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: Chris Friedt <cfriedt@tenstorrent.com>