Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
ca6248aa
Commit
ca6248aa
authored
Jan 28, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "[issue:
#216
] libwr/shmem: fix mechanism of following pointers in shmem"
This reverts commit
33abdd3a
.
parent
b6a2eae2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
shmem.c
userspace/libwr/shmem.c
+1
-8
No files found.
userspace/libwr/shmem.c
View file @
ca6248aa
...
...
@@ -112,14 +112,7 @@ struct wrs_shm_head *wrs_shm_get(enum wrs_shm_name name_id, char *name,
}
head
->
fd
=
fd
;
head
->
sequence
=
1
;
/* a sort of lock */
/* Set mapbase only for the first call of wrs_shm_get.
* At further calls (probably due to a restart of a writter/writer),
* this is used by wrs_shm_follow to calculate the offset of a given
* pointer from the beginning of shmem. */
if
(
!
head
->
mapbase
)
head
->
mapbase
=
head
;
head
->
mapbase
=
head
;
strncpy
(
head
->
name
,
name
,
sizeof
(
head
->
name
));
head
->
name
[
sizeof
(
head
->
name
)
-
1
]
=
'\0'
;
head
->
stamp
=
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