>
> diff --git a/__init__.py b/__init__.py
> index 943e127..8b255c6 100644
> --- a/__init__.py
> +++ b/__init__.py
> @@ -70,6 +74,10 @@ def getDevice(name):
> return (map.dev.major, map.dev.minor)
>
> def getMPaths(disks, logger=None):
> + """Retrieve all the Multi path devices in the system.
> +
> + Returns a list or Multi path objects.
> + """
a list *of* Multi path objects
> old = disks
> disks = []
> for disk in old:
> @@ -157,6 +165,10 @@ def getMPaths(disks, logger=None):
> return mpList
>
> def getRaidSets(*disks):
> + """Retrieve all the raid sets in the system.
> +
> + Returns a list or RaidSet objects.
> + """
same as above ("list of RaidSet objects")
> # make it so you don't have to apply() to pass a list
> old = disks
> disks = []
> diff --git a/dm.c b/dm.c
> index 2aa3a50..beb15ae 100644
> --- a/dm.c
> +++ b/dm.c
> @@ -1698,11 +1705,25 @@ out:
> }
>
> static PyMethodDef pydm_functions[] = {
> - {"scanparts", (PyCFunction)pydm_scan_parts, PYDM_ARGS},
> - {"rmpart", (PyCFunction)pydm_rmpart, PYDM_ARGS},
> - {"set_logger", (PyCFunction)pydm_log_init, PYDM_ARGS},
> - {"maps", (PyCFunction)pydm_maps, METH_NOARGS},
> - {"targets", (PyCFunction)pydm_targets, METH_NOARGS},
> + {"scanparts", (PyCFunction)pydm_scan_parts, PYDM_ARGS,
> + "Rescans the partition talbe for the specified device. "
table
> + "Expects a string representing the device with the keyword "
> + "dev_path. returns None on success and NULL on failure."},
Returns
> + {"rmpart", (PyCFunction)pydm_rmpart, PYDM_ARGS,
> + "Deletes a partition from the specified device. "
> + "Expects a string representing the device with the keyword "
> + "dev_path and an long representing the partition number "
> + "with the keyword partno. Returns None on success and NULL "
> + "on failure."},
> + {"set_logger", (PyCFunction)pydm_log_init, PYDM_ARGS,
> + "Defines the log function to be used. Expects a callable "
> + "object. Will return None on success and NULL on failure. "},
> + {"maps", (PyCFunction)pydm_maps, METH_NOARGS,
> + "Scans the system for mapped devices. It does not expect any "
> + "arguments. It returns a list of map objects."},
> + {"targets", (PyCFunction)pydm_targets, METH_NOARGS,
> + "Scans for suppoerted targets. It does not expect any args. "