Skip to content

Add "PRETIMEOUT" feature #47

@legerch

Description

@legerch

Hello,

First, I want to thank you for this great library :)
I mainly use it in a C application and I was looking for a way to get a kind of "warning" before the system actually perform the reboot, this could allow more easier debugging. For example, we could register a callback method to call when "pre-timeout" is trigger, allowing to log current state of the application (this is only an example).

I saw in watchdog kernel documentation that we have ioctl WDIOC_SETPRETIMEOUT which allow to register a trigger before watchdog timeout. We also have ioctl WDIOC_GETTIMELEFT allowing to retrieve remaining time before system reboot.

Do you think this kind of feature can be implemented in this library ? (maybe I'm out of specs here ?)

Have a nice day

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions