- 论坛徽章:
- 1
|
自己顶下!
原书中第21章有如下两句:
1、When Scatter/Gather I/O is in use, the memory area to which skb->data points is used only the first time. The following chunks of data are copied into pages of memory allocated specifically for this purpose.
2、Figure 21-5(a) shows memory use after the first call and Figure 21-5(b) shows it after the second call, when Scatter/Gather I/O is enabled
第1句是说在SG启用的情况下,还是会有第1次分配skb的过程,之后不再分配新的skb了,数据就呆在pages中即可,这里语焉不详,我搞不懂具体咋个做到的,我是希望知道从sendto-->udp_sendmsg-->ip_append_data这个调用序列中,SG是咋个介入的,并表现为该书所说的方式? |
|