函数逻辑报告 |
Source Code:kernel\relay.c |
Create Date:2022-07-27 12:51:52 |
Last Modify:2020-03-17 19:20:22 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lay_open - create a new relay channel*@base_filename: base name of files to create, %NULL for buffering only*@parent: dentry of parent directory, %NULL for root directory or buffer*@subbuf_size: size of sub-buffers*@n_subbufs: number of sub-buffers*@cb:
函数原型:struct rchan *relay_open(const char *base_filename, struct dentry *parent, size_t subbuf_size, size_t n_subbufs, struct rchan_callbacks *cb, void *private_data)
返回类型:struct rchan
参数:
类型 | 参数 | 名称 |
---|---|---|
const char * | base_filename | |
struct dentry * | parent | |
size_t | subbuf_size | |
size_t | n_subbufs | |
struct rchan_callbacks * | cb | |
void * | private_data |
574 | 如果非subbuf_size且n_subbufs的值则返回:NULL |
576 | 如果subbuf_size大于UINT_MAX除n_subbufs则返回:NULL |
580 | 如果非chan则返回:NULL |
583 | per-cpu channel buffers 等于alloc_percpu(structrchan_buf * ) |
586 | sub-buffer size 等于subbuf_size |
587 | total buffer size allocated 等于 align the pointer to the (next) page boundary (subbuf_size * n_subbufs) |
590 | 如果base_filename则 |
591 | has a filename associated? 等于1 |
592 | 长字符串复制 |
594 | setup_callbacks(chan, cb) |
595 | 初始化对象 |
602 | per_cpu_ptr( per-cpu channel buffers , i)等于buf |
604 | 添加链表项 |
607 | 返回:chan |
609 | free_bufs : |
617 | 返回:NULL |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |