extmod/modvfs: Add vfs.rom_ioctl function and its ioctl constants.

This is a generic interface to allow querying and modifying the read-only
memory area of a device, if it has such an area.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-11-15 12:57:34 +11:00
parent 9dd4cef814
commit 89e6c58c80
5 changed files with 29 additions and 0 deletions

View File

@@ -1006,6 +1006,11 @@ typedef double mp_float_t;
#define MICROPY_VFS_WRITABLE (1)
#endif
// Whether to enable the mp_vfs_rom_ioctl C function, and vfs.rom_ioctl Python function
#ifndef MICROPY_VFS_ROM_IOCTL
#define MICROPY_VFS_ROM_IOCTL (MICROPY_VFS_ROM)
#endif
// Support for VFS POSIX component, to mount a POSIX filesystem within VFS
#ifndef MICROPY_VFS_POSIX
#define MICROPY_VFS_POSIX (0)