[svn-commits] sruffell: branch linux/sruffell/chan_list_refactoring r9305 - in /linux/team/...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Sep 6 10:04:31 CDT 2010
Author: sruffell
Date: Mon Sep 6 10:04:27 2010
New Revision: 9305
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9305
Log:
Revert "dahdi: Remove the capability to perform indirect channel ioctls."
This reverts commit 94a4a693797aea60ab858d4c4ad514af03123458.
Conflicts:
drivers/dahdi/dahdi-base.c
Modified:
linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c
linux/team/sruffell/chan_list_refactoring/include/dahdi/user.h
Modified: linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c?view=diff&rev=9305&r1=9304&r2=9305
==============================================================================
--- linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c (original)
+++ linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c Mon Sep 6 10:04:27 2010
@@ -4458,6 +4458,15 @@
struct dahdi_chan *chan;
switch (cmd) {
+ case DAHDI_INDIRECT:
+ {
+ struct dahdi_indirect_data ind;
+
+ if (copy_from_user(&ind, user_data, sizeof(ind)))
+ return -EFAULT;
+ VALID_CHANNEL(ind.chan);
+ return dahdi_chan_ioctl(file, ind.op, (unsigned long) ind.data, ind.chan);
+ }
case DAHDI_SPANCONFIG:
{
struct dahdi_lineconfig lc;
Modified: linux/team/sruffell/chan_list_refactoring/include/dahdi/user.h
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/chan_list_refactoring/include/dahdi/user.h?view=diff&rev=9305&r1=9304&r2=9305
==============================================================================
--- linux/team/sruffell/chan_list_refactoring/include/dahdi/user.h (original)
+++ linux/team/sruffell/chan_list_refactoring/include/dahdi/user.h Mon Sep 6 10:04:27 2010
@@ -954,6 +954,18 @@
#define DAHDI_SETSIGFREEZE _IOW(DAHDI_CODE, 54, int)
/*
+ * Perform an indirect ioctl (on a specified channel via master interface)
+ */
+struct dahdi_indirect_data {
+ int chan;
+ int op;
+ void *data;
+};
+
+#define DAHDI_INDIRECT _IOWR(DAHDI_CODE, 56, struct dahdi_indirect_data)
+
+
+/*
* Get the version of DAHDI that is running, and a description
* of the compiled-in echo cancellers (if any)
*/
More information about the svn-commits
mailing list