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

Function get_unique_id

dpdk/lib/eal/common/malloc_mp.c:137–145  ·  view source on GitHub ↗

this ID is, like, totally guaranteed to be absolutely unique. pinky swear. */

Source from the content-addressed store, hash-verified

135
136/* this ID is, like, totally guaranteed to be absolutely unique. pinky swear. */
137static uint64_t
138get_unique_id(void)
139{
140 uint64_t id;
141 do {
142 id = rte_rand();
143 } while (find_request_by_id(id) != NULL);
144 return id;
145}
146
147/* secondary will respond to sync requests thusly */
148static int

Callers 2

request_syncFunction · 0.85
request_to_primaryFunction · 0.85

Calls 2

rte_randFunction · 0.85
find_request_by_idFunction · 0.85

Tested by

no test coverage detected