1. 20 Apr, 2012 4 commits
  2. 18 Apr, 2012 34 commits
  3. 13 Apr, 2012 2 commits
    • Ian Abbott's avatar
      staging: comedi: Add kernel config for default buffer sizes · 234bb3c6
      Ian Abbott authored
      Allow the default values for the module parameters for the default
      initial buffer size and default maximum buffer size to be specified in
      the kernel configuration.
      
      I'm not sure what the defaults for the defaults for the defaults should
      be, but 64 KiB seems to small, so I used values suggested by Bernd Porr,
      which are 2048 KiB for the default initial buffer size and 20480 for the
      default maximum buffer size.
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Cc: Bernd Porr <berndporr@f2s.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      234bb3c6
    • Ian Abbott's avatar
      staging: comedi: Add module parameters for default buffer size · 4d7df821
      Ian Abbott authored
      For comedi subdevices that support asynchronous transfer commands, the
      initial buffer size and maximum buffer size for the transfer are both
      set to 64 KiB when the comedi device is "attached" to the hardware
      device.  For many applications with reasonable fast sample rates and
      slow user-space (e.g. Python) these sizes are a bit too small.
      
      A task with CAP_SYS_ADMIN privileges can change the maximum buffer size
      for a comedi subdevice with an ioctl call or by writing to a device
      attribute file in sysfs, but that's not very convenient.  For comedi
      devices attached during system startup, this could be done by a start-up
      script, but for hot-plugged devices it would require scripts run by udev
      rules, etc.
      
      Rather than use hardwired values, this patch introduces a couple of
      module parameters to set the defaults for the initial buffer size
      (comedi_default_buf_size_kb) and maximum buffer size
      (comedi_default_buf_maxsize_kb).  These values are applied in place of
      the previous hard-wired values when the comedi device is "attached".
      The module parameter values are in units of KiB for consistency with the
      existing device attribute files.
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4d7df821