Chinaunix

标题: 咨询一下 u32 (*actor)(struct net_device *) 这个在那里定义的。 [打印本页]

作者: leedesu    时间: 2013-01-11 22:31
标题: 咨询一下 u32 (*actor)(struct net_device *) 这个在那里定义的。
在看到ethtool 时,发现有一个这样的函数,actor(), 我想找它的实现,怎么找不到呢?


static int ethtool_get_value(struct net_device *dev, char __user *useraddr,
                             u32 cmd, u32 (*actor)(struct net_device *))
{
        struct ethtool_value edata = { cmd };

        if (!actor)
                return -EOPNOTSUPP;

        edata.data = actor(dev);

        if (copy_to_user(useraddr, &edata, sizeof(edata)))
                return -EFAULT;
        return 0;
}
作者: leedesu    时间: 2013-01-11 23:33
没人知道?
作者: leedesu    时间: 2013-01-11 23:34
没人知道?





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2