[asterisk-dev] channel number on DAHDI channel ioctl-s

Kevin P. Fleming kpfleming at digium.com
Sat Feb 14 09:11:48 CST 2009


Tzafrir Cohen wrote:

> Looking further, I noticed that all the ioctl operations in
> dahdi_common_ioctl() (from dahdi_base.c) can accept the channel number
> in two ways:
> 
> 1. The number from the channel for which it was called ("unit")
> 2. An explicit channel number may be passed
> 
> What real use is there for (2)? Do we really want to let one channel
> mess with others?

That would probably be used if the file descriptor passed to the
function is actually a handle for /dev/dahdi/ctl, instead of a specific
channel.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpfleming at digium.com
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list