|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include <linux/kernel.h>#include <linux/init.h>#include <linux/module.h>#include <linux/fs.h>#include <linux/string.h>#include <linux/mm.h>#include <linux/syscalls.h>#include <asm/unistd.h>#include <asm/uaccess.h>
宏定义 | |
| #define | OAL_KERNEL_DS KERNEL_DS |
| #define | OAL_O_ACCMODE O_ACCMODE |
| #define | OAL_O_RDONLY O_RDONLY |
| #define | OAL_O_WRONLY O_WRONLY |
| #define | OAL_O_RDWR O_RDWR |
| #define | OAL_O_CREAT O_CREAT |
| #define | OAL_O_TRUNC O_TRUNC |
| #define | OAL_O_APPEND O_APPEND |
| #define | OAL_PRINT_FORMAT_LENGTH 200 /* 打印格式字符串的最大长度 */ |
类型定义 | |
| typedef struct file | oal_file |
| typedef mm_segment_t | oal_mm_segment_t |
函数 | |
| OAL_STATIC OAL_INLINE oal_mm_segment_t | oal_get_fs (osal_void) |
| OAL_STATIC OAL_INLINE osal_void | oal_set_fs (oal_mm_segment_t fs) |
| OAL_STATIC OAL_INLINE osal_void | oal_set_ds (osal_void) |
| OAL_STATIC OAL_INLINE int | oal_debug_sysfs_create_group (struct kobject *kobj, const struct attribute_group *grp) |
| OAL_STATIC OAL_INLINE osal_void | oal_debug_sysfs_remove_group (struct kobject *kobj, const struct attribute_group *grp) |
| oal_file * | oal_kernel_file_open_etc (osal_u8 *file_path, osal_s32 attribute) |
| loff_t | oal_kernel_file_size_etc (oal_file *file) |
| ssize_t | oal_kernel_file_read_etc (oal_file *file, osal_u8 *buff, loff_t fsize) |
| osal_slong | oal_kernel_file_write_etc (oal_file *file, osal_u8 *buf, loff_t fsize) |
| osal_slong | oal_kernel_file_print_etc (oal_file *file, const osal_s8 *pc_fmt,...) |
| #define OAL_KERNEL_DS KERNEL_DS |
| #define OAL_O_ACCMODE O_ACCMODE |
| #define OAL_O_APPEND O_APPEND |
| #define OAL_O_CREAT O_CREAT |
| #define OAL_O_RDONLY O_RDONLY |
| #define OAL_O_RDWR O_RDWR |
| #define OAL_O_TRUNC O_TRUNC |
| #define OAL_O_WRONLY O_WRONLY |
| #define OAL_PRINT_FORMAT_LENGTH 200 /* 打印格式字符串的最大长度 */ |
| typedef struct file oal_file |
| typedef mm_segment_t oal_mm_segment_t |
| OAL_STATIC OAL_INLINE int oal_debug_sysfs_create_group | ( | struct kobject * | kobj, |
| const struct attribute_group * | grp | ||
| ) |
| OAL_STATIC OAL_INLINE osal_void oal_debug_sysfs_remove_group | ( | struct kobject * | kobj, |
| const struct attribute_group * | grp | ||
| ) |
| OAL_STATIC OAL_INLINE oal_mm_segment_t oal_get_fs | ( | osal_void | ) |
|
extern |
|
extern |
|
extern |
| OAL_STATIC OAL_INLINE osal_void oal_set_ds | ( | osal_void | ) |
| OAL_STATIC OAL_INLINE osal_void oal_set_fs | ( | oal_mm_segment_t | fs | ) |