27 lines
549 B
C
27 lines
549 B
C
|
#ifndef SHM_DEV_H
|
||
|
#define SHM_DEV_H
|
||
|
#ifdef __KERNEL__
|
||
|
#include <asm/atomic.h>
|
||
|
#include <linux/semaphore.h>
|
||
|
#include <linux/types.h>
|
||
|
|
||
|
#include "../../common/common.h"
|
||
|
|
||
|
#define SHM_DEV_DBG_DIR ("shm")
|
||
|
|
||
|
/**
|
||
|
* @def SHMDEV_VERSION
|
||
|
* @brief
|
||
|
*/
|
||
|
#define SHMDEV_VERSION ("0.0.0.1")
|
||
|
|
||
|
/**
|
||
|
* @def SHM_MEM_SIZE
|
||
|
* @brief 共享内存总大小
|
||
|
*/
|
||
|
#define SHM_MEM_SIZE (1024 * 1024) ///< 1M字节共享内存
|
||
|
|
||
|
int shm_dev_proc_init(void);
|
||
|
int shm_dev_proc_uninit(void);
|
||
|
#endif
|
||
|
#endif
|