/system/core/fs_mgr/ |
H A D | fs_mgr_dm_ioctl.cpp | 26 void fs_mgr_verity_ioctl_init(struct dm_ioctl* io, const std::string& name, unsigned flags) { argument 27 memset(io, 0, DM_BUF_SIZE); 28 io->data_size = DM_BUF_SIZE; 29 io->data_start = sizeof(struct dm_ioctl); 30 io->version[0] = 4; 31 io->version[1] = 0; 32 io->version[2] = 0; 33 io->flags = flags | DM_READONLY_FLAG; 35 strlcpy(io->name, name.c_str(), sizeof(io 39 fs_mgr_create_verity_device(struct dm_ioctl* io, const std::string& name, int fd) argument 48 fs_mgr_destroy_verity_device(struct dm_ioctl* io, const std::string& name, int fd) argument 57 fs_mgr_get_verity_device_name(struct dm_ioctl* io, const std::string& name, int fd, std::string* out_dev_name) argument 73 fs_mgr_resume_verity_table(struct dm_ioctl* io, const std::string& name, int fd) argument [all...] |
H A D | fs_mgr_avb.cpp | 304 static bool load_verity_table(struct dm_ioctl* io, const std::string& dm_device_name, int fd, argument 306 fs_mgr_verity_ioctl_init(io, dm_device_name, DM_STATUS_TABLE_FLAG); 309 char* buffer = (char*)io; 313 io->target_count = 1; 339 if (ioctl(fd, DM_TABLE_LOAD, io)) { 360 struct dm_ioctl* io = (struct dm_ioctl*)buffer; local 362 if (!fs_mgr_create_verity_device(io, mount_point, fd)) { 369 if (!fs_mgr_get_verity_device_name(io, mount_point, fd, &verity_blk_name)) { 382 if (!load_verity_table(io, mount_point, fd, hashtree_desc.image_size, verity_table)) { 388 if (!fs_mgr_resume_verity_table(io, mount_poin [all...] |
H A D | fs_mgr_verity.cpp | 43 #include "fec/io.h" 253 static int load_verity_table(struct dm_ioctl *io, const std::string &name, argument 258 char *buffer = (char*) io; 261 fs_mgr_verity_ioctl_init(io, name, DM_STATUS_TABLE_FLAG); 266 io->target_count = 1; 289 if (ioctl(fd, DM_TABLE_LOAD, io)) { 764 struct dm_ioctl *io = (struct dm_ioctl *) buffer; local 807 if (!fs_mgr_create_verity_device(io, mount_point, fd)) { 813 if (!fs_mgr_get_verity_device_name(io, mount_point, fd, &verity_blk_name)) { 863 if (load_verity_table(io, mount_poin [all...] |
H A D | fs_mgr.cpp | 1370 struct dm_ioctl* io = (struct dm_ioctl*)buffer; local 1386 fs_mgr_verity_ioctl_init(io, mount_point, 0); 1389 if (ioctl(fd, DM_TABLE_STATUS, io)) { 1398 status = &buffer[io->data_start + sizeof(struct dm_target_spec)];
|
/system/core/libunwindstack/ |
H A D | Regs.cpp | 49 struct iovec io; local 50 io.iov_base = buffer.data(); 51 io.iov_len = buffer.size() * sizeof(uint64_t); 53 if (ptrace(PTRACE_GETREGSET, pid, NT_PRSTATUS, reinterpret_cast<void*>(&io)) == -1) { 57 switch (io.iov_len) {
|
/system/extras/tests/crypto/ |
H A D | get_dm_versions.c | 11 static void ioctl_init(struct dm_ioctl *io, size_t dataSize, const char *name, unsigned flags) argument 13 memset(io, 0, dataSize); 14 io->data_size = dataSize; 15 io->data_start = sizeof(struct dm_ioctl); 16 io->version[0] = 4; 17 io->version[1] = 0; 18 io->version[2] = 0; 19 io->flags = flags; 21 strncpy(io->name, name, sizeof(io 28 struct dm_ioctl *io; local [all...] |
/system/tpm/attestation/server/ |
H A D | database_impl.h | 67 void set_io(DatabaseIO* io) { io_ = io; } argument
|
/system/core/storaged/include/ |
H A D | uid_info.h | 56 io_stats io[UID_STATS]; member in class:android::os::storaged::task_info 64 io_stats io[UID_STATS]; // [0]:foreground [1]:background member in class:android::os::storaged::UidInfo
|
/system/vold/ |
H A D | Devmapper.cpp | 46 void Devmapper::ioctlInit(struct dm_ioctl *io, size_t dataSize, argument 48 memset(io, 0, dataSize); 49 io->data_size = dataSize; 50 io->data_start = sizeof(struct dm_ioctl); 51 io->version[0] = 4; 52 io->version[1] = 0; 53 io->version[2] = 0; 54 io->flags = flags; 56 size_t ret = strlcpy(io->name, name, sizeof(io 80 struct dm_ioctl *io = (struct dm_ioctl *) buffer; local 180 struct dm_ioctl *io = (struct dm_ioctl *) buffer; local 223 struct dm_ioctl *io = (struct dm_ioctl *) buffer; local [all...] |
H A D | MetadataCrypt.cpp | 128 struct dm_ioctl* io = (struct dm_ioctl*) buffer; local 129 io->data_size = buffer_size; 130 io->data_start = sizeof(struct dm_ioctl); 131 io->version[0] = 4; 132 io->version[1] = 0; 133 io->version[2] = 0; 134 io->flags = 0; 135 dm_name.copy(io->name, sizeof(io->name)); 136 return io; 149 auto io = dm_ioctl_init(buffer, sizeof(buffer), dm_name); local [all...] |
H A D | cryptfs.cpp | 251 static void ioctl_init(struct dm_ioctl *io, size_t dataSize, const char *name, unsigned flags) argument 253 memset(io, 0, dataSize); 254 io->data_size = dataSize; 255 io->data_start = sizeof(struct dm_ioctl); 256 io->version[0] = 4; 257 io->version[1] = 0; 258 io->version[2] = 0; 259 io->flags = flags; 261 strlcpy(io->name, name, sizeof(io 988 struct dm_ioctl *io; local 1040 struct dm_ioctl *io; local 1083 struct dm_ioctl* io; local 1154 struct dm_ioctl *io; local [all...] |
/system/core/toolbox/upstream-netbsd/bin/dd/ |
H A D | dd.c | 284 getfdtype(IO *io) argument 289 if (io->ops->op_fstat(io->fd, &sb)) { 290 err(EXIT_FAILURE, "%s", io->name); 294 io->flags |= io->ops->op_ioctl(io->fd, MTIOCGET, &mt) 296 else if (io->ops->op_lseek(io->fd, (off_t)0, SEEK_CUR) == -1 298 io 308 redup_clean_fd(IO *io) argument 586 bwrite(IO *io, const void *buf, size_t len) argument [all...] |
/system/extras/libfec/include/fec/ |
H A D | io.h | 122 class io { class in namespace:fec 124 io() : handle_(nullptr, fec_close) {} function in class:fec::io 126 explicit io(const std::string& fn, int mode = O_RDONLY, int flags = 0, function in class:fec::io
|