commit | 77bf936a8998e6933d72af29deb789b08e1c2e9b | [log] [tgz] |
---|---|---|
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | Fri Dec 02 17:41:30 2011 -0200 |
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | Sat Dec 03 04:07:15 2011 -0200 |
tree | 485708fe7e72af0d09874d09f1e93d2b84bae943 | |
parent | 836be9ac5f0b3023aaff8b10eb26e4dc19403f24 [diff] [blame] |
index: mmap: read root node
diff --git a/libkmod/libkmod-index.c b/libkmod/libkmod-index.c index b7c2c76..8f35ecf 100644 --- a/libkmod/libkmod-index.c +++ b/libkmod/libkmod-index.c
@@ -701,3 +701,8 @@ munmap(idx->mm, idx->size); free(idx); } + +static struct index_mm_node *index_mm_readroot(struct index_mm *idx) +{ + return index_mm_read_node(idx, idx->root_offset); +}