2014-12-11 13:27, Jincheng Miao: > RHEL6.5 kernel is based on 2.6.32. But there are two changing > from 2.6.35: > 1. socket struct is changed > It wrappered previous wait_queue_head_t of socket to > struct socket_wq. So for the kernel older than 2.6.35, we should > directly use socket->wait instead. > > 2. new function sk_sleep() > This function is implemented from 2.6.35 to obtain wait queue > from struct sock. This patch adds a macro in kni/compat.h > to be compatible with older kernels.
I don't understand the relation between RHEL-6.5 and the kernel 2.6.35. The patch seems not related to RHEL at all. Please start your explanations by describing what is the problem you want to solve. Thanks -- Thomas