From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH] NET: Add the helper kernel_sock_shutdown() Date: Fri, 09 Nov 2007 01:44:14 +0000 Message-ID: <18472.1194572654@redhat.com> References: <20071109000136.4700.8891.stgit@heimdal.trondhjem.org> Cc: dhowells@redhat.com, netdev@vger.kernel.org, Paul Clements , Mark Fasheh , Steve French , David S Miller To: Trond Myklebust Return-path: Received: from mx1.redhat.com ([66.187.233.31]:59122 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752991AbXKIBpQ (ORCPT ); Thu, 8 Nov 2007 20:45:16 -0500 In-Reply-To: <20071109000136.4700.8891.stgit@heimdal.trondhjem.org> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Trond Myklebust wrote: > Looking at the sock->op->shutdown() handlers, it looks as if all of them > take a SHUT_RD/SHUT_WR/SHUT_RDWR argument instead of the > RCV_SHUTDOWN/SEND_SHUTDOWN arguments. > Add a helper, and then define the SHUT_* enum to ensure that kernel users > of shutdown() don't get confused. Acked-by: David Howells