diff options
author | Holger Freyther <zecke@selfish.org> | 2009-01-01 03:46:11 +0000 |
---|---|---|
committer | Holger Freyther <zecke@selfish.org> | 2009-01-01 03:46:11 +0000 |
commit | 67b4b9a017647b7d28343a352778920633ebf575 (patch) | |
tree | 50927c6f0fb08f82cb32cedb8daf609211703293 /include/openbsc/chan_alloc.h | |
parent | 3eaa792b21d19dd1cd512b87a391826cf1f3fef4 (diff) |
Do not call rsl_chan_release directly but use the use_count of the lchan
Call use_lchan early in allocate_loc_updating_req, do not directly call
rsl_chan_release but go through channel alloc to take the use_count into
account.
Diffstat (limited to 'include/openbsc/chan_alloc.h')
-rw-r--r-- | include/openbsc/chan_alloc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openbsc/chan_alloc.h b/include/openbsc/chan_alloc.h index 0cbd03e72..0c6d63e64 100644 --- a/include/openbsc/chan_alloc.h +++ b/include/openbsc/chan_alloc.h @@ -19,4 +19,7 @@ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type); /* Free a logical channel (SDCCH, TCH, ...) */ void lchan_free(struct gsm_lchan *lchan); +/* Consider releasing the channel */ +int lchan_auto_release(struct gsm_lchan *lchan); + #endif /* _CHAN_ALLOC_H */ |