Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
3819280b
Unverified
Commit
3819280b
authored
Jul 20, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ringbuf: hide unnecessary symbols
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
95b83e47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
ringbuf.h
src/lxc/ringbuf.h
+6
-4
Makefile.am
src/tests/Makefile.am
+6
-0
No files found.
src/lxc/ringbuf.h
View file @
3819280b
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
#include <stdio.h>
#include <stdio.h>
#include <sys/mman.h>
#include <sys/mman.h>
#include "compiler.h"
/**
/**
* lxc_ringbuf - Implements a simple and efficient memory mapped ringbuffer.
* lxc_ringbuf - Implements a simple and efficient memory mapped ringbuffer.
* - The "addr" field of struct lxc_ringbuf is considered immutable. Instead the
* - The "addr" field of struct lxc_ringbuf is considered immutable. Instead the
...
@@ -29,10 +31,10 @@ struct lxc_ringbuf {
...
@@ -29,10 +31,10 @@ struct lxc_ringbuf {
*
*
* @param[in] size Size of the new ringbuffer as a power of 2.
* @param[in] size Size of the new ringbuffer as a power of 2.
*/
*/
extern
int
lxc_ringbuf_create
(
struct
lxc_ringbuf
*
buf
,
size_t
size
);
__hidden
extern
int
lxc_ringbuf_create
(
struct
lxc_ringbuf
*
buf
,
size_t
size
);
extern
void
lxc_ringbuf_move_read_addr
(
struct
lxc_ringbuf
*
buf
,
size_t
len
);
__hidden
extern
void
lxc_ringbuf_move_read_addr
(
struct
lxc_ringbuf
*
buf
,
size_t
len
);
extern
int
lxc_ringbuf_write
(
struct
lxc_ringbuf
*
buf
,
const
char
*
msg
,
size_t
len
);
__hidden
extern
int
lxc_ringbuf_write
(
struct
lxc_ringbuf
*
buf
,
const
char
*
msg
,
size_t
len
);
extern
int
lxc_ringbuf_read
(
struct
lxc_ringbuf
*
buf
,
char
*
out
,
size_t
*
len
);
__hidden
extern
int
lxc_ringbuf_read
(
struct
lxc_ringbuf
*
buf
,
char
*
out
,
size_t
*
len
);
static
inline
void
lxc_ringbuf_release
(
struct
lxc_ringbuf
*
buf
)
static
inline
void
lxc_ringbuf_release
(
struct
lxc_ringbuf
*
buf
)
{
{
...
...
src/tests/Makefile.am
View file @
3819280b
...
@@ -24,6 +24,7 @@ lxc_test_api_reboot_SOURCES = api_reboot.c \
...
@@ -24,6 +24,7 @@ lxc_test_api_reboot_SOURCES = api_reboot.c \
../lxc/nl.c ../lxc/nl.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/string_utils.c ../lxc/string_utils.h
../lxc/string_utils.c ../lxc/string_utils.h
if
ENABLE_SECCOMP
if
ENABLE_SECCOMP
lxc_test_api_reboot_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
lxc_test_api_reboot_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
...
@@ -47,6 +48,7 @@ lxc_test_attach_SOURCES = attach.c \
...
@@ -47,6 +48,7 @@ lxc_test_attach_SOURCES = attach.c \
../lxc/nl.c ../lxc/nl.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/string_utils.c ../lxc/string_utils.h
../lxc/string_utils.c ../lxc/string_utils.h
if
ENABLE_SECCOMP
if
ENABLE_SECCOMP
lxc_test_attach_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
lxc_test_attach_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
...
@@ -70,6 +72,7 @@ lxc_test_cgpath_SOURCES = cgpath.c \
...
@@ -70,6 +72,7 @@ lxc_test_cgpath_SOURCES = cgpath.c \
../lxc/nl.c ../lxc/nl.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/string_utils.c ../lxc/string_utils.h
../lxc/string_utils.c ../lxc/string_utils.h
if
ENABLE_SECCOMP
if
ENABLE_SECCOMP
lxc_test_cgpath_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
lxc_test_cgpath_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
...
@@ -95,6 +98,7 @@ lxc_test_config_jump_table_SOURCES = config_jump_table.c \
...
@@ -95,6 +98,7 @@ lxc_test_config_jump_table_SOURCES = config_jump_table.c \
../lxc/nl.c ../lxc/nl.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/string_utils.c ../lxc/string_utils.h
../lxc/string_utils.c ../lxc/string_utils.h
if
ENABLE_SECCOMP
if
ENABLE_SECCOMP
lxc_test_config_jump_table_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
lxc_test_config_jump_table_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
...
@@ -138,6 +142,7 @@ lxc_test_parse_config_file_SOURCES = parse_config_file.c \
...
@@ -138,6 +142,7 @@ lxc_test_parse_config_file_SOURCES = parse_config_file.c \
../lxc/nl.c ../lxc/nl.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/string_utils.c ../lxc/string_utils.h
../lxc/string_utils.c ../lxc/string_utils.h
if
ENABLE_SECCOMP
if
ENABLE_SECCOMP
lxc_test_parse_config_file_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
lxc_test_parse_config_file_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
...
@@ -184,6 +189,7 @@ lxc_test_utils_SOURCES = lxc-test-utils.c \
...
@@ -184,6 +189,7 @@ lxc_test_utils_SOURCES = lxc-test-utils.c \
../lxc/nl.c ../lxc/nl.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/string_utils.c ../lxc/string_utils.h
../lxc/string_utils.c ../lxc/string_utils.h
if
ENABLE_SECCOMP
if
ENABLE_SECCOMP
lxc_test_utils_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
lxc_test_utils_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
...
...
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