From owner-freebsd-current Sun Jul 15 12: 3:20 2001 Delivered-To: freebsd-current@freebsd.org Received: from sneakerz.org (sneakerz.org [216.33.66.254]) by hub.freebsd.org (Postfix) with ESMTP id D3F9D37B401; Sun, 15 Jul 2001 12:03:16 -0700 (PDT) (envelope-from bright@sneakerz.org) Received: by sneakerz.org (Postfix, from userid 1092) id 8B8355D010; Sun, 15 Jul 2001 14:03:05 -0500 (CDT) Date: Sun, 15 Jul 2001 14:03:05 -0500 From: Alfred Perlstein To: Hajimu UMEMOTO Cc: julian@elischer.org, net@FreeBSD.org, current@FreeBSD.org Subject: Re: Use of M_WAITOK in if_addmulti(). Message-ID: <20010715140305.H15299@sneakerz.org> References: <20010716.001314.59549708.ume@mahoroba.org> <3B51C28F.7A56D8D8@elischer.org> <20010716.022439.74683611.ume@mahoroba.org> <20010716.023043.130171162.ume@mahoroba.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010716.023043.130171162.ume@mahoroba.org>; from ume@mahoroba.org on Mon, Jul 16, 2001 at 02:30:43AM +0900 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Hajimu UMEMOTO [010715 12:31] wrote: > > ume> Index: sys/net/if.c > ume> diff -u sys/net/if.c.orig sys/net/if.c > ume> --- sys/net/if.c.orig Mon Jul 16 01:39:34 2001 > ume> +++ sys/net/if.c Mon Jul 16 01:51:49 2001 > > Oops, it was wrong version. One trick is to pass a "waitok" parameter, the INET6 code would call it with it set to zero, however most other consumers would call it with it set to one meaning they can block. -- -Alfred Perlstein [alfred@freebsd.org] Ok, who wrote this damn function called '??'? And why do my programs keep crashing in it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message