how to send the kernel data to the user the space using procfs?
问题 I am calculating a timestamp in the kernel and later I want to tranfer the tmestamp from kernel to the user space. So I am using procfs for communication between kernel and user. I am using the procfile_read function for sending the data from kernel as shown below. I modified and calculated the timestamp of the kernel code as shown below. //this code is at network device driver level. int netif_rx(struct sk_buff *skb) { __net_timestamp(skb);//I modify the code in kernel to get the timestamp