Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/mp_ring.h
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | #ifdef NO_64BIT_ATOMICS | ||||
struct mtx lock; | struct mtx lock; | ||||
#endif | #endif | ||||
void * volatile items[] __aligned(CACHE_LINE_SIZE); | void * volatile items[] __aligned(CACHE_LINE_SIZE); | ||||
}; | }; | ||||
int ifmp_ring_alloc(struct ifmp_ring **, int, void *, mp_ring_drain_t, | int ifmp_ring_alloc(struct ifmp_ring **, int, void *, mp_ring_drain_t, | ||||
mp_ring_can_drain_t, struct malloc_type *, int); | mp_ring_can_drain_t, struct malloc_type *, int); | ||||
void ifmp_ring_free(struct ifmp_ring *); | void ifmp_ring_free(struct ifmp_ring *); | ||||
int ifmp_ring_enqueue(struct ifmp_ring *, void **, int, int); | int ifmp_ring_enqueue(struct ifmp_ring *, void **, int, int, int); | ||||
void ifmp_ring_check_drainage(struct ifmp_ring *, int); | void ifmp_ring_check_drainage(struct ifmp_ring *, int); | ||||
void ifmp_ring_reset_stats(struct ifmp_ring *); | void ifmp_ring_reset_stats(struct ifmp_ring *); | ||||
int ifmp_ring_is_idle(struct ifmp_ring *); | int ifmp_ring_is_idle(struct ifmp_ring *); | ||||
int ifmp_ring_is_stalled(struct ifmp_ring *r); | int ifmp_ring_is_stalled(struct ifmp_ring *r); | ||||
#endif | #endif |