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

Function rte_prefetch0_write

dpdk/lib/eal/include/generic/rte_prefetch.h:66–75  ·  view source on GitHub ↗

* @warning * @b EXPERIMENTAL: this API may change, or be removed, without prior notice * * Prefetch a cache line into all cache levels, with intention to write. This * prefetch variant hints to the CPU that the program is expecting to write to * the cache line being prefetched. * * @param p Address to prefetch */

Source from the content-addressed store, hash-verified

64 * @param p Address to prefetch
65 */
66__rte_experimental
67static inline void
68rte_prefetch0_write(const void *p)
69{
70 /* 1 indicates intention to write, 3 sets target cache level to L1. See
71 * GCC docs where these integer constants are described in more detail:
72 * https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html
73 */
74 __builtin_prefetch(p, 1, 3);
75}
76
77/**
78 * @warning

Callers 2

__idxd_write_descFunction · 0.85
test_prefetchFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_prefetchFunction · 0.68