Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
xenomai
Commits
9802f2a0
Commit
9802f2a0
authored
Jun 12, 2018
by
Philippe Gerum
Browse files
copperplate/regd: convert to shared heapmem
parent
cb2e0f6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/copperplate/regd/fs-common.c
View file @
9802f2a0
...
...
@@ -211,8 +211,8 @@ int open_heaps(struct fsobj *fsobj, void *priv)
{
struct
sysgroup_memspec
*
obj
,
*
tmp
;
struct
heap_data
*
heap_data
,
*
p
;
struct
shared_heap_memory
*
heap
;
struct
fsobstack
*
o
=
priv
;
struct
shared_heap
*
heap
;
int
ret
,
count
,
len
=
0
;
ret
=
heapobj_bind_session
(
__copperplate_setup_data
.
session_label
);
...
...
@@ -244,10 +244,10 @@ int open_heaps(struct fsobj *fsobj, void *priv)
for_each_sysgroup
(
obj
,
tmp
,
heap
)
{
if
(
p
-
heap_data
>=
count
)
break
;
heap
=
container_of
(
obj
,
struct
shared_heap
,
memspec
);
heap
=
container_of
(
obj
,
struct
shared_heap
_memory
,
memspec
);
namecpy
(
p
->
name
,
heap
->
name
);
p
->
used
=
heap
->
u
bytes
;
p
->
total
=
heap
->
total
;
p
->
used
=
heap
->
u
sed_size
;
p
->
total
=
heap
->
usable_size
;
p
++
;
}
...
...
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