Index: uspace/app/mkminix/mkminix.c
===================================================================
--- uspace/app/mkminix/mkminix.c	(revision 5f6168d50b3b4d67e1599674eccb07cce340b95d)
+++ uspace/app/mkminix/mkminix.c	(revision 2eaf6551d745a806059950cea09d0aaefa6d56aa)
@@ -275,4 +275,10 @@
 }
 
+/**Inserts the '.' and '..' directory entries in the root directory.
+ *
+ * @param sb		Pointer to the superblock structure.
+ *
+ * @return		EOK on success or a negative error code.
+ */
 static int insert_dentries(const struct mfs_sb_info *sb)
 {
@@ -322,4 +328,10 @@
 }
 
+/**Initialize the inode table.
+ *
+ * @param sb		Pointer to the superblock structure.
+ *
+ * @return		EOK on success or a negative error code.
+ */
 static int init_inode_table(const struct mfs_sb_info *sb)
 {
@@ -349,4 +361,10 @@
 }
 
+/**Initialize a V1 root inode.
+ *
+ * @param sb		Ponter to the superblock structure.
+ *
+ * @return		EOK on success or a negative error code.
+ */
 static int make_root_ino(const struct mfs_sb_info *sb)
 {
@@ -380,5 +398,10 @@
 }
 
-/*Initialize a Minix V2 root inode on disk, also valid for V3 filesystem*/
+/**Initialize a Minix V2 root inode on disk, also valid for V3 filesystem.
+ *
+ * @param sb		Pointer to the superblock structure.
+ *
+ * @return		EOK on success or a negative error code.
+ */
 static int make_root_ino2(const struct mfs_sb_info *sb)
 {
@@ -414,4 +437,10 @@
 }
 
+/**Initialize the superblock structure on disk.
+ *
+ * @param sb		Pointer to the superblock structure.
+ *
+ * @return		EOK on success or a negative error code.
+ */
 static int init_superblock(struct mfs_sb_info *sb)
 {
@@ -493,4 +522,10 @@
 }
 
+/**Write the V1/V2 superblock on disk.
+ *
+ * @param sbi		Pointer to the superblock structure to write on disk.
+ *
+ * @return		EOK on success or a negative error code.
+ */
 static int write_superblock(const struct mfs_sb_info *sbi)
 {
@@ -520,4 +555,10 @@
 }
 
+/**Write the V3s superblock on disk.
+ *
+ * @param sbi		Pointer to the superblock structure to write on disk.
+ *
+ * @return		EOK on success or a negative error code.
+ */
 static int write_superblock3(const struct mfs_sb_info *sbi)
 {
@@ -547,4 +588,10 @@
 }
 
+/**Initialize the inode and block bitmaps on disk.
+ *
+ * @param sb		Pointer to the superblock structure.
+ *
+ * @return		EOK on success or a negative error code.
+ */
 static int init_bitmaps(const struct mfs_sb_info *sb)
 {
@@ -596,4 +643,10 @@
 }
 
+/**Mark a bitmap entry as used or free.
+ *
+ * @param bmap		32-bit pointer to the bitmap in memory.
+ * @param idx		The index in the bitmap of the bit to set at 1 or 0.
+ * @param v		FREE to clear the bit, USED to set the bit.
+ */
 static void mark_bmap(uint32_t *bmap, int idx, int v)
 {
@@ -604,4 +657,12 @@
 }
 
+/**Write a block on disk.
+ *
+ * @param off		64-bit block offset on disk.
+ * @param size		size of the block.
+ * @param data		Pointer to the block content.
+ *
+ * @return		EOK on success or a negative error number.
+ */
 static inline int write_block(aoff64_t off, size_t size, const void *data)
 {
