Lines Matching refs:info64
114 print_loop_info64(struct loop_info64 * const info64, bool print_encrypt, in print_loop_info64() argument
119 printf("%p", info64); in print_loop_info64()
125 major(info64->lo_device), minor(info64->lo_device), in print_loop_info64()
126 (uint64_t) info64->lo_inode, in print_loop_info64()
127 major(info64->lo_rdevice), minor(info64->lo_rdevice), in print_loop_info64()
128 (uint64_t) info64->lo_offset, in print_loop_info64()
129 (uint64_t) info64->lo_sizelimit, in print_loop_info64()
130 (uint32_t) info64->lo_number); in print_loop_info64()
133 (uint64_t) info64->lo_offset, in print_loop_info64()
134 (uint32_t) info64->lo_number); in print_loop_info64()
143 info64->lo_encrypt_type); in print_loop_info64()
146 info64->lo_encrypt_key_size); in print_loop_info64()
153 printf("%#x /* LO_FLAGS_??? */", info64->lo_flags); in print_loop_info64()
154 PRINT_FIELD_CSTRING(", ", *info64, lo_file_name); in print_loop_info64()
157 PRINT_FIELD_CSTRING(", ", *info64, lo_crypt_name); in print_loop_info64()
160 (int) sizeof(info64->lo_encrypt_key), in print_loop_info64()
162 (char *) info64->lo_encrypt_key); in print_loop_info64()
167 (uint64_t) info64->lo_init[0], in print_loop_info64()
168 (uint64_t) info64->lo_init[1]); in print_loop_info64()
186 TAIL_ALLOC_OBJECT_CONST_PTR(struct loop_info64, info64); in main()
265 fill_memory(info64, sizeof(*info64)); in main()
266 info64->lo_flags = 0xdec0de00; in main()
267 info64->lo_file_name[0] = '\0'; in main()
268 info64->lo_crypt_name[0] = '\0'; in main()
269 info64->lo_encrypt_key[0] = '\0'; in main()
270 info64->lo_encrypt_key_size = 1; in main()
273 print_loop_info64(info64, true, NULL, "\\0", NULL); in main()
274 ioctl(-1, LOOP_SET_STATUS64, info64); in main()
277 fill_memory(info64, sizeof(*info64)); in main()
278 info64->lo_flags = LO_FLAGS_READ_ONLY; in main()
279 info64->lo_encrypt_type = LO_CRYPT_NONE; in main()
280 memset(info64->lo_file_name, 'C', sizeof(info64->lo_file_name)); in main()
281 memset(info64->lo_crypt_name, 'D', sizeof(info64->lo_crypt_name)); in main()
282 memset(info64->lo_encrypt_key, 'E', sizeof(info64->lo_encrypt_key)); in main()
284 ioctl(-1, LOOP_SET_STATUS64, (void *) info64 + ALIGNOF(info64)); in main()
286 (void *) info64 + ALIGNOF(info64)); in main()
289 print_loop_info64(info64, false, "LO_CRYPT_NONE", NULL, in main()
291 ioctl(-1, LOOP_SET_STATUS64, info64); in main()
298 ioctl(-1, LOOP_GET_STATUS64, (unsigned long) info64 | kernel_mask); in main()
299 printf("ioctl(-1, LOOP_GET_STATUS64, %p) = -1 EBADF (%m)\n", info64); in main()