open-vault/vault/mlock_unavail.go

11 lines
310 B
Go
Raw Normal View History

// +build windows plan9 darwin freebsd openbsd solaris
2015-04-19 20:42:47 +00:00
package vault
// LockMemory is used to prevent any memory from being swapped to disk
func LockMemory() error {
// XXX: No good way to do this on Windows. There is the VirtualLock
// method, but it requires a specific address and offset.
return nil
}