Record in the program-wide table. More...
#include <mitigator_bpf.h>
Data Fields | |
| TableValue | value |
| Time | update_time |
| uint32_t | padding |
Record in the program-wide table.
Each program has a table to store 1M records of 64-bit data by 64-bit keys. This table is called basic table, for there is also an extended table.
Key 0 is reserved and forbidden. Values are loaded and stored atomically.
Last update time is maintained for each record and stale records are purged, so there is no removal operation. To keep a record in the table, call table_get() or table_put().
| uint32_t TableRecord::padding |
Reserved, not used by API.
| Time TableRecord::update_time |
Update time maintained by the system.
| TableValue TableRecord::value |
User data.