mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
![Dan Magenheimer](/assets/img/avatar_default.png)
RAMster implements peer-to-peer transcendent memory, allowing a "cluster" of kernels to dynamically pool their RAM. This patch adds new files necessary for ramster support: The file ramster.h declares externs and some pampd bitfield manipulation. The file zcache.h declares some zcache functions that now must be accessed from the ramster glue code. The file r2net.c is the glue between zcache and the messaging layer, providing routines called from zcache that initiate messages, and routines that handle messages by calling zcache. TODO explains future plans for merging. Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
22 lines
627 B
C
22 lines
627 B
C
/*
|
|
* zcache.h
|
|
*
|
|
* External zcache functions
|
|
*
|
|
* Copyright (c) 2009-2012, Dan Magenheimer, Oracle Corp.
|
|
*/
|
|
|
|
#ifndef _ZCACHE_H_
|
|
#define _ZCACHE_H_
|
|
|
|
extern int zcache_put(int, int, struct tmem_oid *, uint32_t,
|
|
char *, size_t, bool, int);
|
|
extern int zcache_autocreate_pool(int, int, bool);
|
|
extern int zcache_get(int, int, struct tmem_oid *, uint32_t,
|
|
char *, size_t *, bool, int);
|
|
extern int zcache_flush(int, int, struct tmem_oid *, uint32_t);
|
|
extern int zcache_flush_object(int, int, struct tmem_oid *);
|
|
extern int zcache_localify(int, struct tmem_oid *, uint32_t,
|
|
char *, size_t, void *);
|
|
|
|
#endif /* _ZCACHE_H */
|