Lines Matching refs:info64
106 print_loop_info64(struct loop_info64 * const info64, bool print_encrypt, in print_loop_info64() argument
111 printf("%p", info64); in print_loop_info64()
117 major(info64->lo_device), minor(info64->lo_device), in print_loop_info64()
118 (uint64_t) info64->lo_inode, in print_loop_info64()
119 major(info64->lo_rdevice), minor(info64->lo_rdevice), in print_loop_info64()
120 (uint64_t) info64->lo_offset, in print_loop_info64()
121 (uint64_t) info64->lo_sizelimit, in print_loop_info64()
122 (uint32_t) info64->lo_number); in print_loop_info64()
125 (uint64_t) info64->lo_offset, in print_loop_info64()
126 (uint32_t) info64->lo_number); in print_loop_info64()
135 info64->lo_encrypt_type); in print_loop_info64()
138 info64->lo_encrypt_key_size); in print_loop_info64()
145 printf("%#x /* LO_FLAGS_??? */", info64->lo_flags); in print_loop_info64()
147 (int) sizeof(info64->lo_file_name) - 1, info64->lo_file_name); in print_loop_info64()
151 (int) sizeof(info64->lo_crypt_name) - 1, in print_loop_info64()
152 info64->lo_crypt_name, in print_loop_info64()
154 (int) sizeof(info64->lo_encrypt_key), in print_loop_info64()
156 (char *) info64->lo_encrypt_key); in print_loop_info64()
160 (uint64_t) info64->lo_init[0], in print_loop_info64()
161 (uint64_t) info64->lo_init[1]); in print_loop_info64()
179 struct loop_info64 * const info64 = tail_alloc(sizeof(*info64)); in main() local
256 fill_memory(info64, sizeof(*info64)); in main()
257 info64->lo_flags = 0xdec0de00; in main()
258 info64->lo_file_name[0] = '\0'; in main()
259 info64->lo_crypt_name[0] = '\0'; in main()
260 info64->lo_encrypt_key[0] = '\0'; in main()
261 info64->lo_encrypt_key_size = 1; in main()
264 print_loop_info64(info64, true, NULL, "\\0", NULL); in main()
265 ioctl(-1, LOOP_SET_STATUS64, info64); in main()
268 fill_memory(info64, sizeof(*info64)); in main()
269 info64->lo_flags = LO_FLAGS_READ_ONLY; in main()
270 info64->lo_encrypt_type = LO_CRYPT_NONE; in main()
271 memset(info64->lo_file_name, 'C', sizeof(info64->lo_file_name)); in main()
272 memset(info64->lo_crypt_name, 'D', sizeof(info64->lo_crypt_name)); in main()
273 memset(info64->lo_encrypt_key, 'E', sizeof(info64->lo_encrypt_key)); in main()
275 ioctl(-1, LOOP_SET_STATUS64, (void *) info64 + ALIGNOF(info64)); in main()
277 (void *) info64 + ALIGNOF(info64)); in main()
280 print_loop_info64(info64, false, "LO_CRYPT_NONE", NULL, in main()
282 ioctl(-1, LOOP_SET_STATUS64, info64); in main()
289 ioctl(-1, LOOP_GET_STATUS64, (unsigned long) info64 | kernel_mask); in main()
290 printf("ioctl(-1, LOOP_GET_STATUS64, %p) = -1 EBADF (%m)\n", info64); in main()