[asterisk-dev] channel number on DAHDI channel ioctl-s
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Sat Feb 14 13:35:10 CST 2009
On Sat, Feb 14, 2009 at 12:57:52PM -0600, Kevin P. Fleming wrote:
> Tzafrir Cohen wrote:
>
> > In that case the ioctl code should default to using 'unit' (the number
> > of the channel) and only use the number from userspace if unit is not
> > set (which means the ioctl was called on /dev/dahdi/ctl). Right?
>
> Well, unit will be set even for /dev/dahdi/ctl, it will just be 255 or
> one of those high numbers (too lazy to look at the code right now). But
> yes, it would only accept the unit number from userspace if the current
> unit number is for /dev/dahdi/ctl.
dahdi_ctl_ioctl calls dahdi_common_ioctl (if at all) with unit=0
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-dev
mailing list