Lines Matching refs:ioch
152 io_channel ioch; in alloc_io_channel() local
154 ioch = (io_channel)malloc(sizeof(struct struct_io_channel)); in alloc_io_channel()
155 if (!ioch) in alloc_io_channel()
157 memset(ioch, 0, sizeof(struct struct_io_channel)); in alloc_io_channel()
158 ioch->magic = EXT2_ET_MAGIC_IO_CHANNEL; in alloc_io_channel()
159 ioch->manager = dos_io_manager; in alloc_io_channel()
160 ioch->name = (char *)malloc(strlen(part->dev)+1); in alloc_io_channel()
161 if (!ioch->name) { in alloc_io_channel()
162 free(ioch); in alloc_io_channel()
165 strcpy(ioch->name, part->dev); in alloc_io_channel()
166 ioch->private_data = part; in alloc_io_channel()
167 ioch->block_size = 1024; /* The smallest ext2fs block size */ in alloc_io_channel()
168 ioch->read_error = 0; in alloc_io_channel()
169 ioch->write_error = 0; in alloc_io_channel()
171 return ioch; in alloc_io_channel()