【问题标题】:where we are writing to /proc/net/xt_qtaguid?我们在哪里写 /proc/net/xt_qtaguid?
【发布时间】:2013-11-25 11:53:59
【问题描述】:

在 android_net_TrafficStats.cpp 和 driver_wired.c /proc/net/xt_qtaguid 文件正在读取。我进行了全面搜索,但没有找到该文件的写入位置。

请帮助我找到我们正在以写入模式打开 /proc/net/xt_qtaguid 文件的文件。

【问题讨论】:

    标签: android linux linux-kernel linux-device-driver proc


    【解决方案1】:

    documentation 说:

    每个应用程序/委托的数据使用监控和跟踪功能依赖于 android-3.0 Linux 内核 (kernel/net/netfilter/xt_qtaguid) 中的 xt_qtaguid 模块。

    这个文件永远不会被打开写;其内容由内核提供。

    【讨论】:

      【解决方案2】:

      如果要解析/proc/net/xt_qtaguid,可以参考NetworkStatsFactory

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2016-06-25
        • 2012-02-23
        • 1970-01-01
        • 1970-01-01
        • 2018-11-03
        • 2012-04-09
        • 1970-01-01
        相关资源
        最近更新 更多