Add doc to kmod_dump_index

This commit is contained in:
Lucas De Marchi 2012-01-16 16:43:47 -02:00
parent 49a163759d
commit 0224482e62
3 changed files with 12 additions and 1 deletions

View File

@ -8,6 +8,7 @@ kmod_unref
kmod_load_resources
kmod_unload_resources
kmod_validate_resources
kmod_dump_index
kmod_set_log_priority
kmod_get_log_priority

View File

@ -746,6 +746,16 @@ KMOD_EXPORT void kmod_unload_resources(struct kmod_ctx *ctx)
}
}
/**
* kmod_dump_index:
* @ctx: kmod library context
* @type: index to dump
* @fd: file descriptor to dump index to
*
* Dump index to file descriptor
*
* Returns: 0 on success or < 0 otherwise.
*/
KMOD_EXPORT int kmod_dump_index(struct kmod_ctx *ctx, enum kmod_index type,
int fd)
{

View File

@ -69,7 +69,7 @@ enum kmod_index {
_KMOD_INDEX_PAD = (1 << 31),
};
int kmod_dump_index(struct kmod_ctx *ctx, enum kmod_index idx, int fd);
int kmod_dump_index(struct kmod_ctx *ctx, enum kmod_index type, int fd);
/*
* kmod_list