Debian Codegraph @

efi/attr/attr_linux.go

raw symbols SCIP
1 package attrscip-go gomod github.com/foxboron/go-uefi . `github.com/foxboron/go-uefi/efi/attr`/
2
3 import (
4 "osscip-go gomod github.com/golang/go/src go1.23 os/"
5
6 "golang.org/x/sys/unixscip-go gomod golang.org/x/sys v0.28.0 `golang.org/x/sys/unix`/"
7 )
8
9 // GetAttr retrieves the attributes of a file on a linux filesystem
10 func GetAttrFromFilescip-go gomod github.com/foxboron/go-uefi . `github.com/foxboron/go-uefi/efi/attr`/GetAttrFromFile().(f *osscip-go gomod github.com/golang/go/src go1.23 os/.Filescip-go gomod github.com/golang/go/src go1.23 os/File#) (int32, error) {
11 attr_int, err := unixscip-go gomod golang.org/x/sys v0.28.0 `golang.org/x/sys/unix`/.IoctlGetIntscip-go gomod golang.org/x/sys v0.28.0 `golang.org/x/sys/unix`/IoctlGetInt().(int(f.Fdscip-go gomod github.com/golang/go/src go1.23 os/File#Fd().()), unixscip-go gomod golang.org/x/sys v0.28.0 `golang.org/x/sys/unix`/.FS_IOC_GETFLAGSscip-go gomod golang.org/x/sys v0.28.0 `golang.org/x/sys/unix`/FS_IOC_GETFLAGS.)
12 return int32(attr_int), err
13 }
14
15 // SetAttr sets the attributes of a file on a linux filesystem to the given value
16 func SetAttrOnFilescip-go gomod github.com/foxboron/go-uefi . `github.com/foxboron/go-uefi/efi/attr`/SetAttrOnFile().(f *osscip-go gomod github.com/golang/go/src go1.23 os/.Filescip-go gomod github.com/golang/go/src go1.23 os/File#, attr int32) error {
17 if err := unixscip-go gomod golang.org/x/sys v0.28.0 `golang.org/x/sys/unix`/.IoctlSetPointerIntscip-go gomod golang.org/x/sys v0.28.0 `golang.org/x/sys/unix`/IoctlSetPointerInt().(int(f.Fdscip-go gomod github.com/golang/go/src go1.23 os/File#Fd().()), unixscip-go gomod golang.org/x/sys v0.28.0 `golang.org/x/sys/unix`/.FS_IOC_SETFLAGSscip-go gomod golang.org/x/sys v0.28.0 `golang.org/x/sys/unix`/FS_IOC_SETFLAGS., int(attr)); err != nil {
18 return err
19 }
20 return nil
21 }