函数逻辑报告 |
Source Code:kernel\acct.c |
Create Date:2022-07-27 12:02:10 |
Last Modify:2020-03-17 15:14:29 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:acct_on
函数原型:static int acct_on(struct filename *pathname)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct filename * | pathname |
207 | file等于file_open_name(pathname, O_WRONLY | O_APPEND | O_LARGEFILE, 0) |
208 | 如果是错误则 |
216 | 返回:负EACCES |
219 | 如果非f_mode按位与Has write method(s) 的值则 |
224 | internal等于mnt_clone_internal( & f_path) |
225 | 如果是错误则 |
230 | err等于__mnt_want_write(internal) |
231 | 如果err则 |
235 | 返回:err |
240 | atomic_long_set( & count, 1) |
241 | init_fs_pin( & pin, acct_pin_kill) |
245 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & lock) |
246 | INIT_WORK( & work, close_work) |
247 | init_completion( & done) |
248 | mutex_lock_nested( & lock, 1) |
249 | pin_insert( & pin, mnt) |
255 | __mnt_drop_write(mnt) |
257 | 返回:0 |
名称 | 描述 |
---|---|
SYSCALL_DEFINE1 | sys_acct - enable/disable process accounting*@name: file name for accounting records or NULL to shutdown accounting* Returns 0 for success or negative errno values for failure.* sys_acct() is the only system call needed to implement process* accounting |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |