lkml.org 
[lkml]   [2006]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC 2/6] Make sock_def_wakeup non-static
    Date

    ---

    include/net/sock.h | 1 +
    net/core/sock.c | 3 ++-
    2 files changed, 3 insertions(+), 1 deletions(-)

    diff --git a/include/net/sock.h b/include/net/sock.h
    index 324b3ea..3a64262 100644
    --- a/include/net/sock.h
    +++ b/include/net/sock.h
    @@ -497,6 +497,7 @@ extern void sk_stream_wait_close(struct
    extern int sk_stream_error(struct sock *sk, int flags, int err);
    extern void sk_stream_kill_queues(struct sock *sk);

    +extern void sock_def_wakeup(struct sock *sk);
    extern int sk_wait_data(struct sock *sk, long *timeo);

    struct request_sock_ops;
    diff --git a/net/core/sock.c b/net/core/sock.c
    index 51fcfbc..8496854 100644
    --- a/net/core/sock.c
    +++ b/net/core/sock.c
    @@ -1400,7 +1400,7 @@ ssize_t sock_no_sendpage(struct socket *
    * Default Socket Callbacks
    */

    -static void sock_def_wakeup(struct sock *sk)
    +void sock_def_wakeup(struct sock *sk)
    {
    read_lock(&sk->sk_callback_lock);
    if (sk->sk_sleep && waitqueue_active(sk->sk_sleep))
    @@ -1961,6 +1961,7 @@ EXPORT_SYMBOL(sock_no_poll);
    EXPORT_SYMBOL(sock_no_recvmsg);
    EXPORT_SYMBOL(sock_no_sendmsg);
    EXPORT_SYMBOL(sock_no_sendpage);
    +EXPORT_SYMBOL(sock_def_wakeup);
    EXPORT_SYMBOL(sock_no_setsockopt);
    EXPORT_SYMBOL(sock_no_shutdown);
    EXPORT_SYMBOL(sock_no_socketpair);
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-09-20 23:07    [W:0.021 / U:60.912 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site