Shaun Ruffell
6d4c748e04
Remove checks for HAVE_UNLOCKED_IOCTL for kernel >= 5.9
...
In upstream commit (4e24566a134ea1674 "fs: remove the HAVE_UNLOCKED_IOCTL and
HAVE_COMPAT_IOCTL defines") [1] the kernel removed these defines.
All supported kernels include support for the unlocked_ioctl now, so
DAHDI can also remove these checks.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4e24566a134ea167441a1ffa3d439a27c
Signed-off-by: Shaun Ruffell <sruffell@sruffell.net >
2020-11-16 22:01:22 -06:00
Shaun Ruffell
b5ac763f29
wctc4xxp: Cleanup RTP for unopened channels.
...
When we start the shutdown sequence for a channel, there is no need to submit
any RTP packets that are queued on the command list. Under extreme load with
many backed up RTP packets it was possible to have RTP packets submitted after
the channel shutdown process started.
Signed-off-by: Shaun Ruffell <sruffell@digium.com >
Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com >
2014-05-16 12:06:58 -05:00
Shaun Ruffell
2f3b2a4f62
'dahdi_copy_string()' -> 'strlcpy()'
...
There is already a safe string copying function in all the kernels DAHDI
currently supports.
Signed-off-by: Shaun Ruffell <sruffell@digium.com >
Acked-by: Kinsey Moore <kmoore@digium.com >
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9585 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-01-03 18:26:29 +00:00
Tzafrir Cohen
5759e5a6a6
constants for ctl, transcode, timer, channel, pseudo
...
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com >
Acked-by: Shaun Ruffell <sruffell@digium.com >
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9552 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-01-03 10:49:22 +00:00
Shaun Ruffell
283235686d
Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h
...
The check for DEFINE_SPINLOCK was spread throughout the source tree. If
not defined we can just define it in inlucde/dahdi/kernel.h. Now
include/dahdi/kernel.h is the only place that references
SPIN_LOCK_UNLOCKED (which breaks lockdep checking if DEFINE_SPINLOCK is
otherwise defined in the kernel).
Signed-off-by: Shaun Ruffell <sruffell@digium.com >
Acked-by: Kinsey Moore <kmoore@digium.com >
Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com >
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com >
Review: https://reviewboard.asterisk.org/r/940/
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9411 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-09-24 22:44:53 +00:00
Shaun Ruffell
892fe4b325
dahdi, dahdi_transcode: Remove mmap interface.
...
There are not any existing users of the interface (and it would always
return -ENOSYS to the caller anyway).
Signed-off-by: Shaun Ruffell <sruffell@digium.com >
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9246 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-09-01 15:46:25 +00:00
Shaun Ruffell
bf3fe05dfb
wct4xxp: Moving the transmit short detection behind debug module param.
...
This needs some more testing before it's on by default. If the card is
otherwise functioning, these messages may be confusing to the user. If
the card is not functioning, the driver can be reloaded with debug to
check for this condition.
Signed-off-by: Shaun Ruffell <sruffell@digium.com >
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9205 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-27 21:59:27 +00:00