code: func ApplyOSTweaks(osConfig map[string]*OSValue) {
  	for k, v := range osConfig {
  		// read the existing property from disk
  		oldv, err := readSystemProperty(k)
  		if err != nil {
  			logrus.WithError(err).Errorf("error reading the kernel parameter %s", k)
  			continue
  		}
  
  		if propertyIsValid(oldv, v.Value, v.CheckFn) {
  			// write new prop value to disk
  			if err := writeSystemProperty(k, v.Value); err != nil {
  				logrus.WithError(err).Errorf("error setting the kernel parameter %s = %s, (leaving as %s)", k, v.Value, oldv)
  				continue
  			}
  			logrus.Debugf("updated kernel parameter %s = %s (was %s)", k, v.Value, oldv)
  		}
  	}
  }
docs: // ApplyOSTweaks applies the configuration values passed as arguments