diff options
author | Shaun Ruffell <sruffell@digium.com> | 2012-03-21 19:12:10 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2012-03-21 19:12:10 +0000 |
commit | 9ea13e27ba8210da9661a7514e93aa8bbd0be265 (patch) | |
tree | f057c59b45018324ddcfc3d83e2b7501f62a345d /include | |
parent | d75f326e15374b0bb6a9a71f2d3c50cff24d3b37 (diff) |
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 <sruffell@digium.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10563
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.6@10571 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
-rw-r--r-- | include/dahdi/kernel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 9607fd2..c3a8dd5 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -1116,6 +1116,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 */ |