Skip to content

Commit

Permalink
Define MTD ioctls missing on earlier kernels.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuey committed Feb 6, 2025
1 parent 766e0e8 commit 3bc9501
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/kernel_supplement.h
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,11 @@ enum {
#define MREMAP_DONTUNMAP 4
#endif

// New in the 5.13 kernel
#ifndef OTPERASE
#define OTPERASE _IOW('M', 25, struct otp_info)
#endif

// New in the 5.15 kernel
#ifndef BLKGETDISKSEQ
#define BLKGETDISKSEQ _IOR(0x12,128,__u64)
Expand All @@ -535,6 +540,11 @@ enum {
#define PR_SET_VMA_ANON_NAME 0
#endif

// New in the 6.1 kernel
#ifndef MEMREAD
#define MEMREAD _IOWR('M', 26, typename Arch::mtd_read_req)
#endif

// Technically not "kernel" constants, exactly, since these are defined
// in libc, but required for compat with older libcs like the rest of
// this file.
Expand Down

0 comments on commit 3bc9501

Please sign in to comment.