Add comment to HandleRbEvent() function.

This commit is contained in:
Christian Deacon
2025-02-26 12:01:10 -05:00
parent 53e801be8f
commit f27481fb3b

View File

@@ -95,6 +95,13 @@ void LogMsg(config__t* cfg, int req_lvl, int error, const char* msg, ...)
va_end(args);
}
/**
* Callback for BPF ringbuffer event (filter logging).
*
* @param ctx The context (should be config__t*).
* @param data The event data (should be filter_log_event_t*).
* @param sz The event data size.
*/
int HandleRbEvent(void* ctx, void* data, size_t sz)
{
config__t* cfg = (config__t*)ctx;