Found 2 other functions taking a
esp_task_wdt_user_handle_s
argument:
Subscribe a user to the Task Watchdog Timer (TWDT) This function subscribes a user to the TWDT. A user of the TWDT is usually a function that needs to run periodically. Each subscribed user must periodically call esp_task_wdt_reset_user() to prevent the TWDT from elapsing its timeout period. Failure to do so will result in a TWDT timeout.
Unsubscribes a user from the Task Watchdog Timer (TWDT) This function will unsubscribe a user from the TWDT. After being unsubscribed, the user should no longer call esp_task_wdt_reset_user().