MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_pflock_init

Function rte_pflock_init

dpdk/lib/eal/include/rte_pflock.h:87–94  ·  view source on GitHub ↗

* Initialize the pflock to an unlocked state. * * @param pf * A pointer to the pflock. */

Source from the content-addressed store, hash-verified

85 * A pointer to the pflock.
86 */
87static inline void
88rte_pflock_init(struct rte_pflock *pf)
89{
90 pf->rd.in = 0;
91 pf->rd.out = 0;
92 pf->wr.in = 0;
93 pf->wr.out = 0;
94}
95
96/**
97 * Take a pflock for read.

Callers 1

test_pflockFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_pflockFunction · 0.68