函数逻辑报告 |
Source Code:ipc\shm.c |
Create Date:2022-07-27 18:21:54 |
Last Modify:2020-03-17 22:58:32 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:shm_destroy
函数原型:static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ipc_namespace * | ns | |
struct shmid_kernel * | shp |
284 | shm_file = NULL |
287 | shm_unlock(shp) |
288 | 如果非is_file_hugepages(shm_file)则shmem_lock(shm_file, 0, mlock_user) |
294 | ipc_update_pid( & shm_cprid, NULL) |
295 | ipc_update_pid( & shm_lprid, NULL) |
296 | ipc_rcu_putref( & shm_perm, shm_rcu_free) |
名称 | 描述 |
---|---|
do_shm_rmid | Called with shm_ids.rwsem (writer) and the shp structure locked.* Only shm_ids.rwsem remains locked on exit. |
shm_close | |
shm_try_destroy_orphaned | Called with ns->shm_ids(ns).rwsem locked |
exit_shm | Locking assumes this will only be called with task == current |
do_shmat | Fix shmaddr, allocate descriptor, map shm, add attach descriptor to lists.* NOTE! Despite the name, this is NOT a direct system call entrypoint. The* "raddr" thing points to kernel space, and there has to be a wrapper around* this. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |