在linux 内核编程中,会经常见到一个宏函数container_of(ptr,type,member), 但是当你通过追踪源码时,...
函数名称:dev_get_drvdata 函数原型:static inline void *dev_get_drvdata(const struct device *dev) 返回类型:void 参数: 类型参数名称 const struct device *dev 1419返回:Driver data, set and get with dev_set_drvdata/dev_get_drvdata 源代码转换工具 ...
staticvoidqpnp_vreg_show_state(struct regulator_dev *rdev,enumqpnp_regulator_action action){structqpnp_regulator*vreg=rdev_get_drvdata(rdev);constchar*action_label = qpnp_print_actions[action];unsignedintmode =0;intuV =0;constchar*mode_label ="";enumqpnp_regulator_logical_type type;constchar...
Elixir Cross Referencer - dev_get_drvdata identifier references search for Linux v3.13. Defined as a prototype in include/linux/device.h. Defined as a function in drivers/base/dd.c. Referenced i
示例1: axp_pmx_get_function_groups ▲点赞 9▼ staticintaxp_pmx_get_function_groups(struct pinctrl_dev *pctldev,unsignedfunction,constchar*const**groups,unsigned*constnum_groups){structaxp_pinctrl*pctl=pinctrl_dev_get_drvdata(pctldev);*groups = pctl->functions[function].groups; ...
From: Hans Verkuil <hans.verk...@cisco.com> Use video_drvdata(file) instead of fh->dev to get the cx23885_dev pointer. This prepares for the vb2 conversion where fh->dev (renamed to fh->q_dev in this patch) will be removed completely. ...