函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\sed-opal.c Create Date:2022-07-27 19:48:13
Last Modify:2020-03-17 23:36:33 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sed_ioctl

函数原型:int sed_ioctl(struct opal_dev *dev, unsigned int cmd, void __user *arg)

返回类型:int

参数:

类型参数名称
struct opal_dev *dev
unsigned intcmd
void __user *arg
2626  ret等于负ENOTTY
2628  如果非操作权限检查则返回:负EACCES
2630  如果非dev则返回:负Operation is not supported
2632  如果非supported则返回:负Operation is not supported
2635  p等于memdup_user - duplicate memory region from user space*@src: source address in user space*@len: number of bytes to copy* Return: an ERR_PTR() on failure. Result is physically* contiguous, to be freed by kfree().
2636  如果是错误则返回:错误
2640  :cmd恒等于IOC_OPAL_SAVE
2641  ret等于opal_save(dev, p)
2642  退出
2643  :cmd恒等于IOC_OPAL_LOCK_UNLOCK
2644  ret等于opal_lock_unlock(dev, p)
2645  退出
2646  :cmd恒等于IOC_OPAL_TAKE_OWNERSHIP
2647  ret等于opal_take_ownership(dev, p)
2648  退出
2649  :cmd恒等于IOC_OPAL_ACTIVATE_LSP
2650  ret等于opal_activate_lsp(dev, p)
2651  退出
2652  :cmd恒等于IOC_OPAL_SET_PW
2653  ret等于opal_set_new_pw(dev, p)
2654  退出
2655  :cmd恒等于IOC_OPAL_ACTIVATE_USR
2656  ret等于opal_activate_user(dev, p)
2657  退出
2658  :cmd恒等于IOC_OPAL_REVERT_TPR
2659  ret等于opal_reverttper(dev, p, false)
2660  退出
2661  :cmd恒等于IOC_OPAL_LR_SETUP
2662  ret等于opal_setup_locking_range(dev, p)
2663  退出
2664  :cmd恒等于IOC_OPAL_ADD_USR_TO_LR
2665  ret等于opal_add_user_to_lr(dev, p)
2666  退出
2667  :cmd恒等于IOC_OPAL_ENABLE_DISABLE_MBR
2668  ret等于opal_enable_disable_shadow_mbr(dev, p)
2669  退出
2670  :cmd恒等于IOC_OPAL_MBR_DONE
2671  ret等于opal_set_mbr_done(dev, p)
2672  退出
2673  :cmd恒等于IOC_OPAL_WRITE_SHADOW_MBR
2674  ret等于opal_write_shadow_mbr(dev, p)
2675  退出
2676  :cmd恒等于IOC_OPAL_ERASE_LR
2677  ret等于opal_erase_locking_range(dev, p)
2678  退出
2679  :cmd恒等于IOC_OPAL_SECURE_ERASE_LR
2680  ret等于opal_secure_erase_locking_range(dev, p)
2681  退出
2682  :cmd恒等于IOC_OPAL_PSID_REVERT_TPR
2683  ret等于opal_reverttper(dev, p, true)
2684  退出
2685  :cmd恒等于IOC_OPAL_GENERIC_TABLE_RW
2686  ret等于opal_generic_read_write_table(dev, p)
2687  退出
2688  默认
2689  退出
2692  释放内存
2693  返回:ret