Function report | 
Source Code:kernel\relay.c | 
Create Date:2022-07-28 11:47:09 | 
| Last Modify:2020-03-17 19:20:22 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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
Proto:int relay_late_setup_files(struct rchan *chan, const char *base_filename, struct dentry *parent)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct rchan * | chan | |
| const char * | base_filename | |
| struct dentry * | parent | 
| 653 | err = 0 | 
| 660 | If Not chan || Not base_filename Then Return -EINVAL | 
| 669 | Return -EEXIST | 
| 671 | has a filename associated? = 1 | 
| 674 | If One global buffer ? Then | 
| 676 | buf = per_cpu_ptr( per-cpu channel buffers , 0) | 
| 677 | If Not WARN_ON_ONCE(!buf) Then | 
| 678 | dentry = relay_create_buf_file(chan, buf, 0) | 
| 679 | If dentry && Not WARN_ON_ONCE(! One global buffer ? ) Then | 
| 680 | relay_set_buf_dentry(buf, dentry) | 
| 681 | err = 0 | 
| 685 | Return err | 
| 694 | for_each_online_cpu(i) | 
| 695 | buf = per_cpu_ptr( per-cpu channel buffers , i) | 
| 702 | dentry = relay_create_buf_file(chan, buf, i) | 
| 712 | Else | 
| 715 | smp_mb() | 
| 717 | err = smp_call_function_single(i, Called in atomic context. , & disp, 1) | 
| 721 | If Value for the false possibility is greater at compile time(err) Then Break | 
| 724 | put_cpu() | 
| 727 | Return err | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |