函数逻辑报告 |
Source Code:fs\char_dev.c |
Create Date:2022-07-29 10:32:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Called every time a character special file is opened
函数原型:static int chrdev_open(struct inode *inode, struct file *filp)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct inode * | inode | |
struct file * | filp |
378 | ret等于0 |
380 | 加自旋锁 |
382 | 如果非p则 |
385 | 自旋锁解锁 |
386 | kobj等于kobj_lookup(cdev_map, i_rdev, & idx) |
390 | 加自旋锁 |
394 | 如果非p则 |
402 | 自旋锁解锁 |
409 | 如果非fops则转到:out_cdev_put |
412 | This one is to be used *ONLY* from ->open() instances.* fops must be non-NULL, pinned down *and* module dependencies* should be sufficient to pin the caller down as well.(filp, fops) |
413 | 如果open则 |
419 | 返回:0 |
421 | out_cdev_put : |
423 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |