func Lockall(flags LockallFlag) error { return syscall.Mlockall(int(flags)) }
func lockMemory() error { // Mlockall prevents all current and future pages from being swapped out. return syscall.Mlockall(syscall.MCL_CURRENT | syscall.MCL_FUTURE) }
func lockMemory() { syscall.Mlockall(MCL_CURRENT | MCL_FUTURE) }