Lines Matching refs:scan
445 if _, err := syscall.Write(fd, []byte("scan=off")); err != nil {
448 return fmt.Errorf("write(kmemleak, scan=off) failed: %v", err)
452 if _, err := syscall.Write(fd, []byte("scan")); err != nil {
453 return fmt.Errorf("write(kmemleak, scan) failed: %v", err)
456 if _, err := syscall.Write(fd, []byte("scan")); err != nil {
457 return fmt.Errorf("write(kmemleak, scan) failed: %v", err)
473 // potentially leaked objects, and reports them only on the next scan
476 // Scan, sleep, scan again. At this point we can get some leaks.
477 // If there are leaks, we sleep and scan again, this can remove
480 if _, err := syscall.Write(fd, []byte("scan")); err != nil {
489 if _, err := syscall.Write(fd, []byte("scan")); err != nil {
499 if _, err := syscall.Write(fd, []byte("scan")); err != nil {