s/CachestatArgpack/Cachestat_t/g

This commit is contained in:
Mauri de Souza Meneguzzo
2023-10-08 16:28:14 -03:00
parent 909e5b98eb
commit d18fbb9c48
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 CachestatArgpack C.struct_cachestat
type Cachestat_t 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 *CachestatArgpack, flags uint) (err error)
//sys Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, 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 *CachestatArgpack, flags uint) (err error) {
func Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, 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 CachestatArgpack struct {
type Cachestat_t struct {
Cache uint64
Dirty uint64
Writeback uint64