函数逻辑报告 |
Source Code:kernel\relay.c |
Create Date:2022-07-27 12:51:58 |
Last Modify:2020-03-17 19:20:22 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lay_late_setup_files - triggers file creation*@chan: channel to operate on*@base_filename: base name of files to create*@parent: dentry of parent directory, %NULL for root directory* Returns 0 if successful, non-zero otherwise
函数原型:int relay_late_setup_files(struct rchan *chan, const char *base_filename, struct dentry *parent)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct rchan * | chan | |
const char * | base_filename | |
struct dentry * | parent |
653 | err等于0 |
660 | 如果非chan或非base_filename则返回:负EINVAL |
663 | 长字符串复制 |
667 | 如果此条件成立可能性小(为编译器优化)( has a filename associated? )则 |
669 | 返回:负EEXIST |
671 | has a filename associated? 等于1 |
674 | 如果 One global buffer ? 则 |
676 | buf等于per_cpu_ptr( per-cpu channel buffers , 0) |
677 | 如果非WARN_ON_ONCE(!buf)则 |
678 | dentry等于relay_create_buf_file(chan, buf, 0) |
679 | 如果dentry且非WARN_ON_ONCE(! One global buffer ? )则 |
680 | relay_set_buf_dentry(buf, dentry) |
681 | err等于0 |
685 | 返回:err |
695 | buf等于per_cpu_ptr( per-cpu channel buffers , i) |
696 | 如果此条件成立可能性小(为编译器优化)(!buf)则 |
702 | dentry等于relay_create_buf_file(chan, buf, i) |
703 | 如果此条件成立可能性小(为编译器优化)(!dentry)则 |
712 | 否则 |
715 | smp_mb() |
717 | err等于smp_call_function_single(i, Called in atomic context. , & disp, 1) |
721 | 如果此条件成立可能性小(为编译器优化)(err)则退出 |
724 | put_cpu() |
727 | 返回:err |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |