summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2021-05-11 09:47:09 -0700
committerLucas De Marchi <lucas.demarchi@intel.com>2021-05-11 09:47:09 -0700
commit729f0f685336e7aa91d1a0236a8f09804d261b90 (patch)
tree005bf98abb845928ae5479c2425f54454804b278
parent675410c3b3b1cf4523f02ab6e3128c39bd5d5101 (diff)
downloadkmod-729f0f685336e7aa91d1a0236a8f09804d261b90.tar.gz
kmod-729f0f685336e7aa91d1a0236a8f09804d261b90.tar.bz2
kmod-729f0f685336e7aa91d1a0236a8f09804d261b90.zip
Fix return value doc for kmod_module_get_info()
We don't return 0 on success, we return the number of elements we added to the list.
-rw-r--r--libkmod/libkmod-module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c
index 76a6dc3..b6320cc 100644
--- a/libkmod/libkmod-module.c
+++ b/libkmod/libkmod-module.c
@@ -2277,7 +2277,7 @@ list_error:
*
* After use, free the @list by calling kmod_module_info_free_list().
*
- * Returns: 0 on success or < 0 otherwise.
+ * Returns: number of entries in @list on success or < 0 otherwise.
*/
KMOD_EXPORT int kmod_module_get_info(const struct kmod_module *mod, struct kmod_list **list)
{