/* SPDX-License-Identifier: GPL-1.0+ WITH Linux-syscall-note */ /* * include/linux/loop.h * * Written by Theodore Ts'o, 3/29/93. * * Copyright 1993 by Theodore Ts'o. Redistribution of this file is * permitted under the GNU General Public License. */ #ifndef _UAPI_LINUX_LOOP_H #define _UAPI_LINUX_LOOP_H #define LO_NAME_SIZE 64 #define LO_KEY_SIZE 32 /* * Loop flags */ enum { LO_FLAGS_READ_ONLY = 1, LO_FLAGS_AUTOCLEAR = 4, LO_FLAGS_PARTSCAN = 8, LO_FLAGS_DIRECT_IO = 16, }; #include /* for __kernel_old_dev_t */ #include /* for __u64 */ /* Backwards compatibility version */ struct loop_info { int lo_number; /* ioctl r/o */ __kernel_old_dev_t lo_device; /* ioctl r/o */ unsigned long lo_inode; /* ioctl r/o */ __kernel_old_dev_t lo_rdevice; /* ioctl r/o */ int lo_offset; int lo_encrypt_type; int lo_encrypt_key_size; /* ioctl w/o */ int lo_flags; /* ioctl r/o */ char lo_name[LO_NAME_SIZE]; unsigned char lo_encrypt_key[LO_KEY_SIZE]; /* ioctl w/o */ unsigned long lo_init[2]; char reserved[4]; }; struct loop_info64 { __u64 lo_device; /* ioctl r/o */ __u64 lo_inode; /* ioctl r/o */ __u64 lo_rdevice; /* ioctl r/o */ __u64 lo_offset; __u64 lo_sizelimit;/* bytes, 0 == max available */ __u32 lo_number; /* ioctl r/o */ __u32 lo_encrypt_type; __u32 lo_encrypt_key_size; /* ioctl w/o */ __u32 lo_flags; /* ioctl r/o */ __u8 lo_file_name[LO_NAME_SIZE]; __u8 lo_crypt_name[LO_NAME_SIZE]; __u8 lo_encrypt_key[LO_KEY_SIZE]; /* ioctl w/o */ __u64 lo_init[2]; }; /* * Loop filter types */ #define LO_CRYPT_NONE 0 #define LO_CRYPT_XOR 1 #define LO_CRYPT_DES 2 #define LO_CRYPT_FISH2 3 /* Twofish encryption */ #define LO_CRYPT_BLOW 4 #define LO_CRYPT_CAST128 5 #define LO_CRYPT_IDEA 6 #define LO_CRYPT_DUMMY 9 #define LO_CRYPT_SKIPJACK 10 #define LO_CRYPT_CRYPTOAPI 18 #define MAX_LO_CRYPT 20 /* * IOCTL commands --- we will commandeer 0x4C ('L') */ #define LOOP_SET_FD 0x4C00 #define LOOP_CLR_FD 0x4C01 #define LOOP_SET_STATUS 0x4C02 #define LOOP_GET_STATUS 0x4C03 #define LOOP_SET_STATUS64 0x4C04 #define LOOP_GET_STATUS64 0x4C05 #define LOOP_CHANGE_FD 0x4C06 #define LOOP_SET_CAPACITY 0x4C07 #define LOOP_SET_DIRECT_IO 0x4C08 #define LOOP_SET_BLOCK_SIZE 0x4C09 /* /dev/loop-control interface */ #define LOOP_CTL_ADD 0x4C80 #define LOOP_CTL_REMOVE 0x4C81 #define LOOP_CTL_GET_FREE 0x4C82 #endif /* _UAPI_LINUX_LOOP_H */ Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2025-04-02scripts/sorttable: Fix endianness handling in build-time mcount sortVasily Gorbik
2025-02-25scripts/sorttable: Allow matches to functions before function entrySteven Rostedt
2025-02-25scripts/sorttable: Use normal sort if theres no relocs in the mcount sectionSteven Rostedt
2025-02-18scripts/sorttable: Zero out weak functions in mcount_loc tableSteven Rostedt
2025-02-18scripts/sorttable: Always use an array for the mcount_loc sortingSteven Rostedt
2025-02-18scripts/sorttable: Have mcount rela sort use direct valuesSteven Rostedt
2025-02-18arm64: scripts/sorttable: Implement sorting mcount_loc at boot for arm64Steven Rostedt
2025-01-10scripts/sorttable: Use a structure of function pointers for elf helpersSteven Rostedt
2025-01-07scripts/sorttable: Get start/stop_mcount_loc from ELF file directlySteven Rostedt
2025-01-07scripts/sorttable: Move code from sorttable.h into sorttable.cSteven Rostedt
2025-01-07scripts/sorttable: Add helper functions for Elf_SymSteven Rostedt
2025-01-07scripts/sorttable: Add helper functions for Elf_ShdrSteven Rostedt
2025-01-07scripts/sorttable: Add helper functions for Elf_EhdrSteven Rostedt
2025-01-07scripts/sorttable: Convert Elf_Sym MACRO over to a unionSteven Rostedt
2025-01-07scripts/sorttable: Replace Elf_Shdr Macro with a unionSteven Rostedt
2025-01-07scripts/sorttable: Convert Elf_Ehdr to unionSteven Rostedt
2025-01-07scripts/sorttable: Make compare_extable() into two functionsSteven Rostedt
2025-01-07scripts/sorttable: Remove unused write functionsSteven Rostedt
2022-12-14LoongArch: extable: Add `type` and `data` fieldsYouling Tang
2022-12-14LoongArch: Switch to relative exception tablesYouling Tang
2022-06-03LoongArch: Add ELF-related definitionsHuacai Chen
2022-03-08s390/extable: convert to relative table with dataHeiko Carstens
2022-01-19Merge tag 'riscv-for-linus-5.17-mw0' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds
2022-01-13scripts: ftrace - move the sort-processing in ftrace_initYinan Liu
2022-01-05riscv: extable: add `type` and `data` fieldsJisheng Zhang
2022-01-05riscv: switch to relative exception tablesJisheng Zhang
2022-01-05scripts/sorttable: Unify arm64 & x86 sort functionsMark Rutland
2021-11-01Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds
2021-10-21arm64: extable: add `type` and `data` fieldsMark Rutland
2021-10-16Merge branch 'x86/urgent' into x86/fpu, to resolve a conflictIngo Molnar
2021-09-24scripts/sorttable: riscv: fix undeclared identifier 'EM_RISCV' errorMiles Chen
2021-09-13x86/extable: Rework the exception table mechanicsThomas Gleixner
2021-09-10riscv: Enable BUILDTIME_TABLE_SORTJisheng Zhang
2020-07-20s390/kernel: expand exception table logic to allow new handling optionsIlya Leoshkevich
2019-12-13scripts/sorttable: Implement build-time ORC unwind table sortingShile Zhang
2019-12-13scripts/sorttable: Rename 'sortextable' to 'sorttable'Shile Zhang