File: shmem.h

package info (click to toggle)
criu 4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,500 kB
  • sloc: ansic: 139,280; python: 7,484; sh: 3,824; java: 2,799; makefile: 2,659; asm: 1,137; perl: 206; xml: 117; exp: 45
file content (17 lines) | stat: -rw-r--r-- 471 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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__ */