dahdi-linux/include/dahdi
Shaun Ruffell 69774cd457 dahdi_dynamic: Do not call into dahdi_dynamic without holding reference.
Instead of registering a function pointer, register a dahdi_dynamic_ops
structure that contains the owner as well as the ioctl callback. This way
dahdi.ko can bump up the reference count on dahdi_dynamic.ko before calling
the ioctl callback.

Also, use the registration mutex to guard against the module being unloaded
between the time the structure pointer was checked, and the module reference
is taken.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>

Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10623

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.6@10628 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2012-04-03 20:10:03 +00:00
..
dahdi_config.h dahdi: Move the default tone lengths into include/dahdi/dahdi_config.h 2011-01-05 15:52:03 +00:00
fasthdlc.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
Kbuild wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
kernel.h dahdi_dynamic: Do not call into dahdi_dynamic without holding reference. 2012-04-03 20:10:03 +00:00
user.h Revert "dahdi: Use enumeration for maintenance modes." 2011-06-29 15:32:40 +00:00
wctdm_user.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00