函数逻辑报告 |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-27 21:03:48 |
Last Modify:2020-03-18 09:15:18 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_write_profile - Write profile table.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.
函数原型:static int tomoyo_write_profile(struct tomoyo_io_buffer *head)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct tomoyo_io_buffer * | head |
676 | data等于Buffer for writing. |
681 | 如果sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments恒等于1则返回:0 |
684 | i等于转换字符串为无符号整形 |
691 | cp等于strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for |
694 | cp自加等于'\0' |
695 | 如果非字符串比较则 |
696 | DEFINE_SPINLOCK(lock) |
697 | new_comment等于tomoyo_get_name(cp) |
701 | 如果非new_comment则返回:负ENOMEM |
703 | 加自旋锁 |
704 | old_comment等于comment |
705 | comment等于new_comment |
706 | 自旋锁解锁 |
708 | 返回:0 |
710 | 如果非字符串比较则 |
711 | 以i小于TOMOYO_MAX_PREF循环moyo_set_uint - Set value for specified preference.*@i: Pointer to "unsigned int".*@string: String to check.*@find: Name of keyword.* Returns nothing. |
714 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |