Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canghaiwuhen
OpenXG-RAN
Commits
28c47996
Commit
28c47996
authored
Sep 12, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When preparing slice update/search also loaded libraries
parent
38ace905
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac.c
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac.c
+10
-1
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac_internal.c
.../ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac_internal.c
+4
-0
No files found.
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac.c
View file @
28c47996
...
@@ -1728,7 +1728,16 @@ void helper_destroy_mac_slice_config(Protocol__FlexSliceConfig *slice_config) {
...
@@ -1728,7 +1728,16 @@ void helper_destroy_mac_slice_config(Protocol__FlexSliceConfig *slice_config) {
}
}
int
check_scheduler
(
mid_t
mod_id
,
char
*
s
)
{
int
check_scheduler
(
mid_t
mod_id
,
char
*
s
)
{
return
dlsym
(
NULL
,
s
)
!=
NULL
;
if
(
!
s
)
return
1
;
if
(
dlsym
(
NULL
,
s
))
return
1
;
flexran_agent_so_handle_t
*
so
=
NULL
;
SLIST_FOREACH
(
so
,
&
flexran_handles
[
mod_id
],
entries
)
{
if
(
strcmp
(
so
->
name
,
s
)
==
0
)
return
1
;
}
return
0
;
}
}
void
request_scheduler
(
mid_t
mod_id
,
char
*
s
,
int
xid
)
{
void
request_scheduler
(
mid_t
mod_id
,
char
*
s
,
int
xid
)
{
...
...
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac_internal.c
View file @
28c47996
...
@@ -1029,6 +1029,10 @@ int load_dl_scheduler_function(mid_t mod_id, const char *function_name) {
...
@@ -1029,6 +1029,10 @@ int load_dl_scheduler_function(mid_t mod_id, const char *function_name) {
}
}
void
*
search_so
(
mid_t
mod_id
,
char
*
name
)
{
void
*
search_so
(
mid_t
mod_id
,
char
*
name
)
{
if
(
!
name
)
// no name -> nothing to return, so use NULL for executable
return
NULL
;
if
(
dlsym
(
NULL
,
name
))
// found it in executable
return
NULL
;
flexran_agent_so_handle_t
*
so
=
NULL
;
flexran_agent_so_handle_t
*
so
=
NULL
;
SLIST_FOREACH
(
so
,
&
flexran_handles
[
mod_id
],
entries
)
{
SLIST_FOREACH
(
so
,
&
flexran_handles
[
mod_id
],
entries
)
{
if
(
strcmp
(
so
->
name
,
name
)
==
0
)
if
(
strcmp
(
so
->
name
,
name
)
==
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment