summaryrefslogtreecommitdiffstats
path: root/net/9p/error.c
diff options
context:
space:
mode:
authorEric Van Hensbergen2008-03-05 14:08:09 +0100
committerEric Van Hensbergen2008-05-15 02:23:25 +0200
commitee443996a35c1e04f210cafd43d5a98d41e46085 (patch)
tree58ee72b69a02d9dbb3a98e402a4561baba0eb9a8 /net/9p/error.c
parentadd match_strlcpy() us it to make v9fs make uname and remotename parsing more... (diff)
downloadkernel-qcow2-linux-ee443996a35c1e04f210cafd43d5a98d41e46085.tar.gz
kernel-qcow2-linux-ee443996a35c1e04f210cafd43d5a98d41e46085.tar.xz
kernel-qcow2-linux-ee443996a35c1e04f210cafd43d5a98d41e46085.zip
9p: Documentation updates
The kernel-doc comments of much of the 9p system have been in disarray since reorganization. This patch fixes those problems, adds additional documentation and a template book which collects the 9p information. Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p/error.c')
-rw-r--r--net/9p/error.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/net/9p/error.c b/net/9p/error.c
index 64104b9cb422..388770c3631e 100644
--- a/net/9p/error.c
+++ b/net/9p/error.c
@@ -33,6 +33,13 @@
#include <linux/errno.h>
#include <net/9p/9p.h>
+/**
+ * struct errormap - map string errors from Plan 9 to Linux numeric ids
+ * @name: string sent over 9P
+ * @val: numeric id most closely representing @name
+ * @namelen: length of string
+ * @list: hash-table list for string lookup
+ */
struct errormap {
char *name;
int val;
@@ -177,8 +184,7 @@ static struct errormap errmap[] = {
};
/**
- * p9_error_init - preload
- * @errstr: error string
+ * p9_error_init - preload mappings into hash list
*
*/
@@ -206,6 +212,7 @@ EXPORT_SYMBOL(p9_error_init);
/**
* errstr2errno - convert error string to error number
* @errstr: error string
+ * @len: length of error string
*
*/