types s/Cachestat/CachestatArgpack/g

This commit is contained in:
Mauri de Souza Meneguzzo
2023-10-06 23:48:53 -03:00
parent a119a9a333
commit 909e5b98eb
4 changed files with 4 additions and 4 deletions

View File

@@ -5828,5 +5828,5 @@ type SchedAttr C.struct_sched_attr
const SizeofSchedAttr = C.sizeof_struct_sched_attr
type Cachestat C.struct_cachestat
type CachestatArgpack C.struct_cachestat
type CachestatRange C.struct_cachestat_range

View File

@@ -2483,4 +2483,4 @@ func SchedGetAttr(pid int, flags uint) (*SchedAttr, error) {
return attr, nil
}
//sys Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat, flags uint) (err error)
//sys Cachestat(fd uint, crange *CachestatRange, cstat *CachestatArgpack, flags uint) (err error)

View File

@@ -2198,7 +2198,7 @@ func schedGetattr(pid int, attr *SchedAttr, size uint, flags uint) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat, flags uint) (err error) {
func Cachestat(fd uint, crange *CachestatRange, cstat *CachestatArgpack, flags uint) (err error) {
_, _, e1 := Syscall6(SYS_CACHESTAT, uintptr(fd), uintptr(unsafe.Pointer(crange)), uintptr(unsafe.Pointer(cstat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)

View File

@@ -5884,7 +5884,7 @@ type SchedAttr struct {
const SizeofSchedAttr = 0x38
type Cachestat struct {
type CachestatArgpack struct {
Cache uint64
Dirty uint64
Writeback uint64