criu/compel/plugins/include/uapi/plugin-shmem.h
Dmitry Safonov a1d931c354 compel: plugins -- Add shmem plugin
The shmem pluging allows creation of shared memory segment between
parasite code and the caller.

Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-14 23:58:09 +03:00

17 lines
471 B
C

#ifndef __COMPEL_PLUGIN_SHMEM_H__
#define __COMPEL_PLUGIN_SHMEM_H__
/*
* Creates local shmem mapping and announces it
* to the peer. Peer can later "receive" one. The
* local area should be munmap()-ed at the end.
*/
extern void *shmem_create(unsigned long size);
/*
* "Receives" shmem from peer and maps it. The
* locally mapped area should be munmap()-ed at
* the end
*/
extern void *shmem_receive(unsigned long *size);
#endif /* __COMPEL_PLUGIN_SHMEM_H__ */