code: func isKernelPid(pid int) bool {
  	// Kernel threads have no associated executable.
  	_, err := os.Readlink(fmt.Sprintf("/proc/%d/exe", pid))
  	return err != nil
  }
docs: // Determines whether the specified PID is a kernel PID.