rte_timecounter(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

πŸ’… rte_timecounter(3) β€” Library Functions Manual πŸ’…

okay bestie, welcome to the Library Functions Manual page for rte_timecounter(3). This one is a struct manual moment β€” no cap, it's all about the data fields and their exact definitions. Let's get into it. 🫢

✨ NAME ✨

rte_timecounter

πŸŽ€ SYNOPSIS πŸŽ€

#include <rte_time.h>

🌸 Data Fields 🌸

  • uint64_t cycle_last
  • uint64_t nsec
  • uint64_t nsec_mask
  • uint64_t nsec_frac
  • uint64_t cc_mask
  • uint32_t cc_shift

πŸ¦‹ Detailed Description πŸ¦‹

Okay so this is the structure to hold the parameters of a running cycle counter, and it's there to assist in converting cycles to nanoseconds. Time math but make it struct, periodt. ⏳✨

Definition at line 21 of file rte_time.h.

πŸ’– Field Documentation πŸ’–

uint64_t cycle_last

Last cycle counter value read.

Definition at line 23 of file rte_time.h.

uint64_t nsec

Nanoseconds count.

Definition at line 25 of file rte_time.h.

uint64_t nsec_mask

Bitmask separating nanosecond and sub-nanoseconds.

Definition at line 27 of file rte_time.h.

uint64_t nsec_frac

Sub-nanoseconds count.

Definition at line 29 of file rte_time.h.

uint64_t cc_mask

Bitmask for two's complement subtraction of non-64 bit counters.

Definition at line 31 of file rte_time.h.

uint32_t cc_shift

Cycle to nanosecond divisor (power of two).

Definition at line 33 of file rte_time.h.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. (Doxygen ate and left no crumbs, bestie.) πŸ’…


🌈 That's the whole glow-up of rte_timecounter(3)! This page comes from DPDK Version 26.03.0, and it's signing off with a little sparkle. Catch you in the next manpage, bestie! πŸ’œπŸŽ€
πŸ“¦ where this page comes from