mirror of
https://github.com/golang/sys.git
synced 2026-02-09 04:06:04 +03:00
unix: add linux mseal system call
DO NOT REVIEW. DO NOT SUBMIT. The mseal system call was added in Linux 6.10. See https://lwn.net/Articles/954936. Depends on https://go-review.googlesource.com/c/sys/+/600516
This commit is contained in:
@@ -2592,3 +2592,4 @@ func SchedGetAttr(pid int, flags uint) (*SchedAttr, error) {
|
||||
}
|
||||
|
||||
//sys Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) (err error)
|
||||
//sys Mseal(addr uintptr, len int, flags uint) (err error)
|
||||
|
||||
@@ -2229,3 +2229,13 @@ func Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Mseal(addr uintptr, len int, flags uint) (err error) {
|
||||
_, _, e1 := Syscall(SYS_MSEAL, uintptr(addr), uintptr(len), uintptr(flags))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user