Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:channel

49 static errcode_t inode_open(const char *name, int flags, io_channel *channel);
50 static errcode_t inode_close(io_channel channel);
51 static errcode_t inode_set_blksize(io_channel channel, int blksize);
52 static errcode_t inode_read_blk(io_channel channel, unsigned long block,
54 static errcode_t inode_write_blk(io_channel channel, unsigned long block,
56 static errcode_t inode_flush(io_channel channel);
57 static errcode_t inode_write_byte(io_channel channel, unsigned long offset,
59 static errcode_t inode_read_blk64(io_channel channel,
61 static errcode_t inode_write_blk64(io_channel channel,
115 static errcode_t inode_open(const char *name, int flags, io_channel *channel)
162 *channel = io;
175 static errcode_t inode_close(io_channel channel)
180 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
181 data = (struct inode_private_data *) channel->private_data;
184 if (--channel->refcount > 0)
189 ext2fs_free_mem(&channel->private_data);
190 if (channel->name)
191 ext2fs_free_mem(&channel->name);
192 ext2fs_free_mem(&channel);
196 static errcode_t inode_set_blksize(io_channel channel, int blksize)
200 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
201 data = (struct inode_private_data *) channel->private_data;
204 channel->block_size = blksize;
209 static errcode_t inode_read_blk64(io_channel channel,
215 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
216 data = (struct inode_private_data *) channel->private_data;
220 block * channel->block_size,
224 count = (count < 0) ? -count : (count * channel->block_size);
229 static errcode_t inode_read_blk(io_channel channel, unsigned long block,
232 return inode_read_blk64(channel, block, count, buf);
235 static errcode_t inode_write_blk64(io_channel channel,
241 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
242 data = (struct inode_private_data *) channel->private_data;
246 block * channel->block_size,
250 count = (count < 0) ? -count : (count * channel->block_size);
255 static errcode_t inode_write_blk(io_channel channel, unsigned long block,
258 return inode_write_blk64(channel, block, count, buf);
261 static errcode_t inode_write_byte(io_channel channel, unsigned long offset,
267 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
268 data = (struct inode_private_data *) channel->private_data;
281 static errcode_t inode_flush(io_channel channel)
285 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
286 data = (struct inode_private_data *) channel->private_data;