Lines Matching full:ioch
150 io_channel ioch;
152 ioch = (io_channel)malloc(sizeof(struct struct_io_channel));
153 if (!ioch)
155 memset(ioch, 0, sizeof(struct struct_io_channel));
156 ioch->magic = EXT2_ET_MAGIC_IO_CHANNEL;
157 ioch->manager = dos_io_manager;
158 ioch->name = (char *)malloc(strlen(part->dev)+1);
159 if (!ioch->name) {
160 free(ioch);
163 strcpy(ioch->name, part->dev);
164 ioch->private_data = part;
165 ioch->block_size = 1024; /* The smallest ext2fs block size */
166 ioch->read_error = 0;
167 ioch->write_error = 0;
169 return ioch;