Lines Matching refs:io
11 static void ioctl_init(struct dm_ioctl *io, size_t dataSize, const char *name, unsigned flags) in ioctl_init() argument
13 memset(io, 0, dataSize); in ioctl_init()
14 io->data_size = dataSize; in ioctl_init()
15 io->data_start = sizeof(struct dm_ioctl); in ioctl_init()
16 io->version[0] = 4; in ioctl_init()
17 io->version[1] = 0; in ioctl_init()
18 io->version[2] = 0; in ioctl_init()
19 io->flags = flags; in ioctl_init()
21 strncpy(io->name, name, sizeof(io->name)); in ioctl_init()
28 struct dm_ioctl *io; in main() local
38 io = (struct dm_ioctl *) buffer; in main()
40 ioctl_init(io, DM_CRYPT_BUF_SIZE, NULL, 0); in main()
42 if (ioctl(fd, DM_LIST_VERSIONS, io)) { in main()