実際に
・vRouterカーネルモジュールがメモリをアロケートするときは、size_t宣言。
・vRouter Agentが保持するフローテーブルのサイズはint宣言。
const char *
vr_table_map(int major, unsigned int table, const char
*table_path, size_t size, void **mem)
{
…
*mem = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, 0);
…
}
https://github.com/tungstenfabric/tf-vrouter/blob/R2011/utils/unix_util.c
class KSyncMemory {
…
// Size of flow table memory
int table_size_;
…
};
https://github.com/tungstenfabric/tf-con
troller/blob/R2011/src/vnsw/agent/vrout
er/ksync/ksync_memory.h