Home
last modified time | relevance | path

Searched refs:io (Results 1 – 13 of 13) sorted by relevance

/system/extras/tests/crypto/
Dget_dm_versions.c10 static void ioctl_init(struct dm_ioctl *io, size_t dataSize, const char *name, unsigned flags) in ioctl_init() argument
12 memset(io, 0, dataSize); in ioctl_init()
13 io->data_size = dataSize; in ioctl_init()
14 io->data_start = sizeof(struct dm_ioctl); in ioctl_init()
15 io->version[0] = 4; in ioctl_init()
16 io->version[1] = 0; in ioctl_init()
17 io->version[2] = 0; in ioctl_init()
18 io->flags = flags; in ioctl_init()
20 strncpy(io->name, name, sizeof(io->name)); in ioctl_init()
27 struct dm_ioctl *io; in main() local
[all …]
/system/vold/
DDevmapper.cpp65 struct dm_ioctl *io = (struct dm_ioctl *) buffer; in dumpState() local
66 ioctlInit(io, (1024 * 64), NULL, 0); in dumpState()
68 if (ioctl(fd, DM_LIST_DEVICES, io)) { in dumpState()
76 struct dm_name_list *n = (struct dm_name_list *) (((char *) buffer) + io->data_start); in dumpState()
117 void Devmapper::ioctlInit(struct dm_ioctl *io, size_t dataSize, in ioctlInit() argument
119 memset(io, 0, dataSize); in ioctlInit()
120 io->data_size = dataSize; in ioctlInit()
121 io->data_start = sizeof(struct dm_ioctl); in ioctlInit()
122 io->version[0] = 4; in ioctlInit()
123 io->version[1] = 0; in ioctlInit()
[all …]
Dcryptfs.c319 static void ioctl_init(struct dm_ioctl *io, size_t dataSize, const char *name, unsigned flags) in ioctl_init() argument
321 memset(io, 0, dataSize); in ioctl_init()
322 io->data_size = dataSize; in ioctl_init()
323 io->data_start = sizeof(struct dm_ioctl); in ioctl_init()
324 io->version[0] = 4; in ioctl_init()
325 io->version[1] = 0; in ioctl_init()
326 io->version[2] = 0; in ioctl_init()
327 io->flags = flags; in ioctl_init()
329 strncpy(io->name, name, sizeof(io->name)); in ioctl_init()
977 struct dm_ioctl *io; in load_crypto_mapping_table() local
[all …]
DDevmapper.h35 static void ioctlInit(struct dm_ioctl *io, size_t data_size,
/system/core/fs_mgr/
Dfs_mgr_verity.c237 static void verity_ioctl_init(struct dm_ioctl *io, char *name, unsigned flags) in verity_ioctl_init() argument
239 memset(io, 0, DM_BUF_SIZE); in verity_ioctl_init()
240 io->data_size = DM_BUF_SIZE; in verity_ioctl_init()
241 io->data_start = sizeof(struct dm_ioctl); in verity_ioctl_init()
242 io->version[0] = 4; in verity_ioctl_init()
243 io->version[1] = 0; in verity_ioctl_init()
244 io->version[2] = 0; in verity_ioctl_init()
245 io->flags = flags | DM_READONLY_FLAG; in verity_ioctl_init()
247 strlcpy(io->name, name, sizeof(io->name)); in verity_ioctl_init()
251 static int create_verity_device(struct dm_ioctl *io, char *name, int fd) in create_verity_device() argument
[all …]
/system/core/debuggerd/arm64/
Dmachine.cpp32 struct iovec io; in dump_memory_and_code() local
33 io.iov_base = &regs; in dump_memory_and_code()
34 io.iov_len = sizeof(regs); in dump_memory_and_code()
36 if (ptrace(PTRACE_GETREGSET, tid, (void*)NT_PRSTATUS, &io) == -1) { in dump_memory_and_code()
68 struct iovec io; in dump_registers() local
69 io.iov_base = &r; in dump_registers()
70 io.iov_len = sizeof(r); in dump_registers()
72 if (ptrace(PTRACE_GETREGSET, tid, (void*) NT_PRSTATUS, (void*) &io) == -1) { in dump_registers()
93 io.iov_base = &f; in dump_registers()
94 io.iov_len = sizeof(f); in dump_registers()
[all …]
/system/core/toolbox/upstream-netbsd/bin/dd/
Ddd.c284 getfdtype(IO *io) in getfdtype() argument
289 if (io->ops->op_fstat(io->fd, &sb)) { in getfdtype()
290 err(EXIT_FAILURE, "%s", io->name); in getfdtype()
294 io->flags |= io->ops->op_ioctl(io->fd, MTIOCGET, &mt) in getfdtype()
296 else if (io->ops->op_lseek(io->fd, (off_t)0, SEEK_CUR) == -1 in getfdtype()
298 io->flags |= ISPIPE; /* XXX fixed in 4.4BSD */ in getfdtype()
308 redup_clean_fd(IO *io) in redup_clean_fd() argument
310 int fd = io->fd; in redup_clean_fd()
322 newfd = io->ops->op_fcntl(fd, F_DUPFD, 3); in redup_clean_fd()
328 io->ops->op_close(fd); in redup_clean_fd()
[all …]
/system/extras/verity/
DUtils.java20 import java.io.File;
21 import java.io.FileInputStream;
22 import java.io.FileOutputStream;
23 import java.io.IOException;
DBootSignature.java19 import java.io.IOException;
DKeystoreSigner.java19 import java.io.IOException;
/system/core/adb/
Dprotocol.txt170 The SYNC message is used by the io pump to make sure that stale
175 * when the connection to the remote side goes offline, the io pump
177 * when the connection to the remote side is established, the io pump
179 * when the io pump receives a matching SYNC(1, token), it once again
198 will be a select/epoll loop to handle io between various inbound and
216 a thread or subprocess to handle the io.
/system/core/fastbootd/other/sign/src/
DSignImg.java3 import java.io.*;
/system/core/libmincrypt/tools/
DDumpPublicKey.java21 import java.io.FileInputStream;