search for: suspend_state_t

Displaying 1 result from an estimated 1 matches for "suspend_state_t".

Did you mean: suspend_state
2020 Jul 03
0
[RFC]: mm,power: introduce MADV_WIPEONSUSPEND
...l.org/lkml/20170811212829.29186-1-riel at redhat.com/ [...] > diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c > index c874a7026e24..4282b7f0dd03 100644 > --- a/kernel/power/suspend.c > +++ b/kernel/power/suspend.c > @@ -323,6 +323,78 @@ static bool platform_suspend_again(suspend_state_t state) > suspend_ops->suspend_again() : false; > } > > +#ifdef VM_WIPEONSUSPEND > +static void memory_cleanup_on_suspend(suspend_state_t state) > +{ > + struct task_struct *p; > + struct mm_struct *mm; > + struct vm_area_struct *vma;...