libmetal
Loading...
Searching...
No Matches
shmem.c File Reference
#include <metal/shmem.h>
#include <metal/sys.h>
#include <metal/utilities.h>

Data Structures

struct  metal_shmem
 

Functions

static void metal_shmem_io_close (struct metal_io_region *io)
 
static int metal_virt2phys (void *addr, unsigned long *phys)
 
static int metal_shmem_try_map (struct metal_page_size *ps, int fd, size_t size, struct metal_io_region **result)
 
int metal_shmem_open (const char *name, size_t size, struct metal_io_region **result)
 Open a libmetal shared memory segment.
 

Variables

static const struct metal_io_ops metal_shmem_io_ops
 

Function Documentation

◆ metal_shmem_io_close()

static void metal_shmem_io_close ( struct metal_io_region * io)
static

◆ metal_shmem_try_map()

static int metal_shmem_try_map ( struct metal_page_size * ps,
int fd,
size_t size,
struct metal_io_region ** result )
static

◆ metal_virt2phys()

static int metal_virt2phys ( void * addr,
unsigned long * phys )
static

Variable Documentation

◆ metal_shmem_io_ops

const struct metal_io_ops metal_shmem_io_ops
static
Initial value:
= {
NULL, NULL, NULL, NULL, NULL, metal_shmem_io_close, NULL, NULL
}
static void metal_shmem_io_close(struct metal_io_region *io)
Definition shmem.c:21