code: func (k *KernelValidator) parseKernelConfig(r io.Reader) (map[string]kConfigOption, error) {
  	config := map[string]kConfigOption{}
  	regex := regexp.MustCompile(validKConfigRegex)
  	s := bufio.NewScanner(r)
  	for s.Scan() {
  		if err := s.Err(); err != nil {
  			return nil, err
  		}
  		line := strings.TrimSpace(s.Text())
  		if !regex.MatchString(line) {
  			continue
  		}
  		fields := strings.Split(line, "=")
  		if len(fields) != 2 {
  			klog.Errorf("Unexpected fields number in config %q", line)
  			continue
  		}
  		config[fields[0]] = kConfigOption(fields[1])
  	}
  	return config, nil
  
  }
docs: // parseKernelConfig converts kernel config to internal type.