Searched refs:rte_keepalive_shm (Results 1 – 4 of 4) sorted by relevance
| /f-stack/dpdk/examples/l2fwd-keepalive/ |
| H A D | shm.c | 13 struct rte_keepalive_shm *rte_keepalive_shm_create(void) in rte_keepalive_shm_create() 17 struct rte_keepalive_shm *ka_shm; in rte_keepalive_shm_create() 35 else if (ftruncate(fd, sizeof(struct rte_keepalive_shm)) != 0) in rte_keepalive_shm_create() 39 ka_shm = (struct rte_keepalive_shm *) mmap( in rte_keepalive_shm_create() 40 0, sizeof(struct rte_keepalive_shm), in rte_keepalive_shm_create() 47 memset(ka_shm, 0, sizeof(struct rte_keepalive_shm)); in rte_keepalive_shm_create() 55 sizeof(struct rte_keepalive_shm)); in rte_keepalive_shm_create() 74 void rte_keepalive_relayed_state(struct rte_keepalive_shm *shm, in rte_keepalive_relayed_state() 104 void rte_keepalive_shm_cleanup(struct rte_keepalive_shm *ka_shm) in rte_keepalive_shm_cleanup() 110 if (ka_shm && munmap(ka_shm, sizeof(struct rte_keepalive_shm)) != 0) in rte_keepalive_shm_cleanup()
|
| H A D | shm.h | 25 struct rte_keepalive_shm { struct 45 struct rte_keepalive_shm *rte_keepalive_shm_create(void); argument 58 void rte_keepalive_relayed_state(struct rte_keepalive_shm *shm, 69 void rte_keepalive_shm_cleanup(struct rte_keepalive_shm *ka_shm);
|
| H A D | main.c | 521 rte_keepalive_relayed_state((struct rte_keepalive_shm *)ptr_data, in relay_core_state() 537 struct rte_keepalive_shm *ka_shm; in main()
|
| /f-stack/dpdk/examples/l2fwd-keepalive/ka-agent/ |
| H A D | main.c | 24 static struct rte_keepalive_shm *ka_shm_create(void) in ka_shm_create() 27 size_t size = sizeof(struct rte_keepalive_shm); in ka_shm_create() 28 struct rte_keepalive_shm *shm; in ka_shm_create() 35 shm = (struct rte_keepalive_shm *) mmap( in ka_shm_create() 51 struct rte_keepalive_shm *shm = ka_shm_create(); in main() 117 if (munmap(shm, sizeof(struct rte_keepalive_shm)) != 0) in main()
|