(proc *procfs.Handle, subpath string, flags int)
| 12 | ) |
| 13 | |
| 14 | func procfsOpenRoot(proc *procfs.Handle, subpath string, flags int) (*os.File, error) { |
| 15 | handle, err := proc.OpenRoot(subpath) |
| 16 | if err != nil { |
| 17 | return nil, err |
| 18 | } |
| 19 | defer handle.Close() |
| 20 | |
| 21 | return pathrs.Reopen(handle, flags) |
| 22 | } |
| 23 | |
| 24 | // WriteSysctls sets the given sysctls to the requested values. |
| 25 | func WriteSysctls(sysctls map[string]string) error { |
no test coverage detected
searching dependent graphs…