projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
59b3a82
)
Comments.
author
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 27 Sep 2004 16:04:34 +0000
(16:04 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 27 Sep 2004 16:04:34 +0000
(16:04 +0000)
src/lib/kernel/hash.h
patch
|
blob
|
history
diff --git
a/src/lib/kernel/hash.h
b/src/lib/kernel/hash.h
index b7eadd31a57a147b7590efb142383bf2ab612e43..0dd0c3d9bfe232185d510b6a5ee55e88576a4878 100644
(file)
--- a/
src/lib/kernel/hash.h
+++ b/
src/lib/kernel/hash.h
@@
-12,11
+12,12
@@
structure that can potentially be in a hash must embed a
hash_elem member. All of the hash functions operate on these
`hash_elem's. The hash_entry macro allows conversion from a
structure that can potentially be in a hash must embed a
hash_elem member. All of the hash functions operate on these
`hash_elem's. The hash_entry macro allows conversion from a
- hash_elem back to a structure object that contains it.
+ hash_elem back to a structure object that contains it. This
+ is the same technique used in the linked list implementation.
+ Refer to lib/kernel/list.h for a detailed explanation.
-
-
-*/
+ The FAQ for the VM project contains a detailed example of how
+ to use the hash table. */
#include <stdbool.h>
#include <stddef.h>
#include <stdbool.h>
#include <stddef.h>