diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-03-01 22:22:39 +0300 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-03-13 04:00:56 +0300 |
commit | f3c2682bad7bc6033c837e9c66e5af881fe8d465 (patch) | |
tree | f0101c73dee541fd4cd6e599e26f5e5b1195190e /drivers/net/wireguard | |
parent | 5acd35487dc911541672b3ffc322851769c32a56 (diff) | |
download | linux-f3c2682bad7bc6033c837e9c66e5af881fe8d465.tar.xz |
random: provide notifier for VM fork
Drivers such as WireGuard need to learn when VMs fork in order to clear
sessions. This commit provides a simple notifier_block for that, with a
register and unregister function. When no VM fork detection is compiled
in, this turns into a no-op, similar to how the power notifier works.
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'drivers/net/wireguard')
0 files changed, 0 insertions, 0 deletions