示例#1
0
文件: hmap.c 项目: David-B55/ovs
/* Exchanges hash maps 'a' and 'b'. */
void
hmap_swap(struct hmap *a, struct hmap *b)
{
    struct hmap tmp = *a;
    *a = *b;
    *b = tmp;
    hmap_moved(a);
    hmap_moved(b);
}
示例#2
0
文件: simap.c 项目: Grim-lock/ovs
/* Adjusts 'simap' so that it is still valid after it has been moved around in
 * memory (e.g. due to realloc()). */
void
simap_moved(struct simap *simap)
{
    hmap_moved(&simap->map);
}
示例#3
0
文件: shash.c 项目: JScheurich/ovs
void
shash_moved(struct shash *sh)
{
    hmap_moved(&sh->map);
}