Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jul 2001 14:03:05 -0500
From:      Alfred Perlstein <bright@sneakerz.org>
To:        Hajimu UMEMOTO <ume@mahoroba.org>
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>
In-Reply-To: <20010716.023043.130171162.ume@mahoroba.org>; from ume@mahoroba.org on Mon, Jul 16, 2001 at 02:30:43AM %2B0900
References:  <20010716.001314.59549708.ume@mahoroba.org> <3B51C28F.7A56D8D8@elischer.org> <20010716.022439.74683611.ume@mahoroba.org> <20010716.023043.130171162.ume@mahoroba.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Hajimu UMEMOTO <ume@mahoroba.org> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010715140305.H15299>