*
* Module provide a kfile interface, that ensure an abstraction
* from comunication channel and give a standard interface.
*
* Module provide a kfile interface, that ensure an abstraction
* from comunication channel and give a standard interface.
ASSERT(fd->fd.seek_pos + (kfile_size_t)size <= fd->fd.size);
size = MIN((kfile_size_t)size, fd->fd.size - fd->fd.seek_pos);
ASSERT(fd->fd.seek_pos + (kfile_size_t)size <= fd->fd.size);
size = MIN((kfile_size_t)size, fd->fd.size - fd->fd.seek_pos);