nuttx/include/sys
liuhaitao 14cc2d09d2 board/ctrl: add BOARDCTL_SWITCH_BOOT switch boot system support
BOARDIOC_SWITCH_BOOT is required to communicate the boot partition from
userspace (OTA subsystem) to board. It can be used to change the system
boot behavior. So it's useful for A/B boot or even single boot case.

For the board support A/B boot case:
1. Download the new image from the sever
2. Write the new image to the alternative partition
3. Call BOARDCTL_SWITCH_BOOT to the alternative system

For single boot partition case:
1. Download the new image from the sever
2. Call BOARDCTL_SWITCH_BOOT and reboot to a small system
3. Write the new image to the main partition in the small system
4. Call BOARDCTL_SWITCH_BOOT again to the main system

Change-Id: Ifebb495784ecf06842946a249bec64f75dce894f
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-07-26 22:46:18 +08:00
..
boardctl.h board/ctrl: add BOARDCTL_SWITCH_BOOT switch boot system support 2021-07-26 22:46:18 +08:00
custom_file.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
epoll.h vfs: Fix epoll cannot work under 64-bit operating system 2021-03-13 10:55:41 -08:00
eventfd.h fs/vfs: Add file descriptor based events support 2020-07-31 15:09:35 -06:00
file.h inclue/sys/file.h: Dummy header for POSIX compliance 2020-02-19 11:48:49 -06:00
ioctl.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
ipc.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
mman.h include: Fix typos reported by codespell 2021-02-25 11:30:38 -08:00
mount.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
param.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
poll.h sys/poll: add POLLRDHUP definition 2021-06-16 14:15:14 +08:00
prctl.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
resource.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
select.h select: fix asan report error 2021-07-03 13:09:52 -05:00
sendfile.h fs: Simplify sendfile implementation 2021-07-17 04:58:40 -07:00
shm.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
socket.h sys/socket.h: Add "Socket"-level control message types 2021-04-03 01:02:07 -05:00
sockio.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
stat.h fs: Move umask to task_info_s 2021-07-16 11:16:10 +08:00
statfs.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
statvfs.h fs/vfs: Implement statvfs and fstatvfs 2020-07-13 20:25:03 +01:00
syscall.h Add g_funcnames declaration in syscall.h 2020-07-22 12:01:40 -05:00
syscall_lookup.h fs: Simplify sendfile implementation 2021-07-17 04:58:40 -07:00
time.h libc: Move the declaration of futimens from sys/time.h to sys/stat.h 2021-07-10 19:22:58 +08:00
times.h libc: Implement times function 2021-07-21 19:50:54 +08:00
types.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
uio.h sys/uio: fix nxstyle warning 2020-11-09 02:33:52 -08:00
un.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
utsname.h tools/version.sh: Add the remaining cut to VERSION 2021-03-17 19:19:58 -03:00
vfs.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
wait.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00