WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
oal_kernel_file.h 文件参考
#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>
oal_kernel_file.h 的引用(Include)关系图:

浏览源代码.

宏定义

#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_fileoal_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,...)
 

宏定义说明

◆ OAL_KERNEL_DS

#define OAL_KERNEL_DS   KERNEL_DS

◆ OAL_O_ACCMODE

#define OAL_O_ACCMODE   O_ACCMODE

◆ OAL_O_APPEND

#define OAL_O_APPEND   O_APPEND

◆ OAL_O_CREAT

#define OAL_O_CREAT   O_CREAT

◆ OAL_O_RDONLY

#define OAL_O_RDONLY   O_RDONLY

◆ OAL_O_RDWR

#define OAL_O_RDWR   O_RDWR

◆ OAL_O_TRUNC

#define OAL_O_TRUNC   O_TRUNC

◆ OAL_O_WRONLY

#define OAL_O_WRONLY   O_WRONLY

◆ OAL_PRINT_FORMAT_LENGTH

#define OAL_PRINT_FORMAT_LENGTH   200 /* 打印格式字符串的最大长度 */

类型定义说明

◆ oal_file

typedef struct file oal_file

◆ oal_mm_segment_t

typedef mm_segment_t oal_mm_segment_t

函数说明

◆ oal_debug_sysfs_create_group()

OAL_STATIC OAL_INLINE int oal_debug_sysfs_create_group ( struct kobject *  kobj,
const struct attribute_group *  grp 
)

◆ oal_debug_sysfs_remove_group()

OAL_STATIC OAL_INLINE osal_void oal_debug_sysfs_remove_group ( struct kobject *  kobj,
const struct attribute_group *  grp 
)

◆ oal_get_fs()

◆ oal_kernel_file_open_etc()

oal_file * oal_kernel_file_open_etc ( osal_u8 file_path,
osal_s32  attribute 
)
extern

◆ oal_kernel_file_print_etc()

osal_slong oal_kernel_file_print_etc ( oal_file file,
const osal_s8 pc_fmt,
  ... 
)
extern

◆ oal_kernel_file_read_etc()

ssize_t oal_kernel_file_read_etc ( oal_file file,
osal_u8 buff,
loff_t  fsize 
)
extern

◆ oal_kernel_file_size_etc()

loff_t oal_kernel_file_size_etc ( oal_file file)
extern

◆ oal_kernel_file_write_etc()

osal_slong oal_kernel_file_write_etc ( oal_file file,
osal_u8 buf,
loff_t  fsize 
)
extern

◆ oal_set_ds()

◆ oal_set_fs()