X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fio%2Fkfile.h;h=9b0b07d016aa27c8692c98b333827a3ace61e5b6;hb=9b851504d2822d5d10b9894dd09706a39232faad;hp=c7a5bfc924235f6919c96d019fee68405b95f7dd;hpb=732194360d28057468a14459120487784dfbc2e2;p=bertos.git diff --git a/bertos/io/kfile.h b/bertos/io/kfile.h index c7a5bfc9..9b0b07d0 100644 --- a/bertos/io/kfile.h +++ b/bertos/io/kfile.h @@ -31,6 +31,10 @@ * * --> * + * \defgroup io_kfile KFile interface + * \ingroup core + * \{ + * * \brief Virtual KFile I/O interface. * * KFile is a simple, generic interface for file I/O. It uses an @@ -219,6 +223,12 @@ int kfile_genericClose(struct KFile *fd); /** * Read \a size bytes from file \a fd into \a buf. * + * This function reads at most the number of requested bytes into the + * provided buffer. + * The value returned may be less than the requested bytes in case EOF is + * reached OR an error occurred. You need to check the error conditions + * using kfile_error() to understand which case happened. + * * \note This function will block if there are less than \a size bytes * to read. * @@ -325,6 +335,8 @@ void kfile_resync(KFile *fd, mtime_t delay); void kfile_init(struct KFile *fd); /* @} */ +/** \} */ //Defgroup io_kfile + /* * Kfile test function. */