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
ramstore
fast-ipc-module
Commits
6bbedfea
Commit
6bbedfea
authored
Mar 08, 2016
by
Charles Jacobsen
Browse files
lcd: rpc example builds and runs, after removing locks.
parent
ee75e7b5
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/include/libfipc.h
View file @
6bbedfea
...
...
@@ -158,6 +158,7 @@
#define LIBFIPC_H
#include <libfipc_types.h>
#include <libfipc_platform.h>
/* MAIN INTERFACE -------------------------------------------------- */
...
...
src/include/libfipc_internal.h
View file @
6bbedfea
...
...
@@ -10,6 +10,8 @@
#include <libfipc_platform_types.h>
#include <libfipc_platform_internal.h>
#include <libfipc_platform.h>
/* DEBUGGING ---------------------------------------- */
...
...
@@ -28,28 +30,4 @@
} while (0)
/* MUTEXES -------------------------------------------------- */
static
inline
int
fipc_mutex_init
(
fipc_mutex_t
*
mutex
)
{
return
__fipc_mutex_init
(
mutex
);
}
static
inline
int
fipc_mutex_lock
(
fipc_mutex_t
*
mutex
)
{
return
__fipc_mutex_lock
(
mutex
);
}
static
inline
int
fipc_mutex_unlock
(
fipc_mutex_t
*
mutex
)
{
return
__fipc_mutex_unlock
(
mutex
);
}
/* BUILD CHECKS ------------------------------------------------------------ */
#define FIPC_BUILD_BUG_ON_NOT_POWER_OF_2(x) \
(__FIPC_BUILD_BUG_ON_NOT_POWER_OF_2(x))
#define FIPC_BUILD_BUG_ON(x) \
(__FIPC_BUILD_BUG_ON(x))
#endif
/* LIBFIPC_INTERNAL_H */
src/include/libfipc_types.h
View file @
6bbedfea
...
...
@@ -58,7 +58,7 @@ struct fipc_message {
* it to be double cacheline sized.
*/
#define FIPC_RING_BUF_PADDING \
(FIPC_CACHE_LINE_SIZE - (3 * sizeof(unsigned long))
(FIPC_CACHE_LINE_SIZE - (3 * sizeof(unsigned long))
)
struct
fipc_ring_buf
{
/**
* Where *I* am in the IPC buffer. (The other guy knows where I am
...
...
src/platform/kernel/include/Makefile.am
View file @
6bbedfea
nobase_include_HEADERS
=
\
libfipc_platform_types.h
libfipc_platform_types.h
libfipc_platform.h
noinst_HEADERS
=
\
libfipc_platform_internal.h
src/platform/kernel/include/libfipc_platform.h
0 → 100644
View file @
6bbedfea
/*
* libfipc_platform.h
*
* Kernel-specific defs part of the public API
*
* Copyright: University of Utah
*/
#ifndef LIBFIPC_PLATFORM_H
#define LIBFIPC_PLATFORM_H
#include <linux/bug.h>
/* BUILD CHECKS ------------------------------------------------------------ */
#define FIPC_BUILD_BUG_ON_NOT_POWER_OF_2(x) \
(__FIPC_BUILD_BUG_ON_NOT_POWER_OF_2(x))
#define FIPC_BUILD_BUG_ON(x) \
(__FIPC_BUILD_BUG_ON(x))
#endif
/* LIBFIPC_PLATFORM_H */
src/platform/kernel/include/libfipc_platform_types.h
View file @
6bbedfea
...
...
@@ -8,6 +8,7 @@
#ifndef LIBFIPC_PLATFORM_TYPES_H
#define LIBFIPC_PLATFORM_TYPES_H
/* Nothing for now */
#include <linux/errno.h>
#include <linux/string.h>
#endif
/* LIBFIPC_PLATFORM_TYPES_H */
Write
Preview
Supports
Markdown
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