From 7138ef6d7d7ed536d440da8df79f1a4258044291 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Wed, 21 Mar 2012 18:56:21 +0000 Subject: dahdi_dynamic: Since dynamic devices are 'parentless' we must name them. This in conjunction with r10449 "A parent-less device should not crash dahdi", this allows dahdi_dynamic spans to work post the dahdi_devices changes in 2.6.0. The full address of the device is not used since kernels prior to 2.6.31 limit the length of a devicename to 20 characters. The full address of the device can be pulled out of the "hardware_id" and "type" fields of the span. This patch is just to get things working again. dahdi_dynamic devices *may* still have issues if the auto_assign_spans module parameter is 0. Internal-Issue-ID: DAHLIN-280 Reported-by: Pavel Selivanov Signed-off-by: Shaun Ruffell git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10563 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- include/dahdi/kernel.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index a0c96ae..8097cb3 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -1096,6 +1096,9 @@ struct dahdi_dynamic_driver { struct list_head list; struct module *owner; + + /*! Numberic id of next device created by this driver. */ + unsigned int id; }; /*! \brief Receive a dynamic span message */ -- cgit v1.2.3