* Begin a read-side critical section. * * See rte_seqcount_read_retry() for details. * * @param seqlock * A pointer to the seqlock. * @return * The seqlock sequence number for this critical section, to * later be passed to rte_seqlock_read_retry(). * * @see rte_seqlock_read_retry() * @see rte_seqcount_read_retry() */
| 143 | * @see rte_seqcount_read_retry() |
| 144 | */ |
| 145 | static inline uint32_t |
| 146 | rte_seqlock_read_begin(const rte_seqlock_t *seqlock) |
| 147 | { |
| 148 | return rte_seqcount_read_begin(&seqlock->count); |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * End a read-side critical section. |