dahdi-linux/include/dahdi
Shaun Ruffell 4ee22f19d1 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>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10623 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2012-04-03 19:44:27 +00:00
..
dahdi_config.h Remove support for kernels < 2.6.18 2012-03-13 20:09:12 +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 19:44:27 +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