Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jul 1998 15:45:58 +0200 (MET DST)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        current@FreeBSD.ORG
Subject:   SMP kernels... how many processes can be in ?
Message-ID:  <199807271345.PAA04072@labinfo.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
Hi,

I am about to do some minor modifications to the dummynet code and, for
technical reasons (don't want to change interfaces to widely used
kernel functions) need to keep some state to be passed between
functions in a static variable.

Something similar is already done in the ipfw package using the
DIVERT option. Now my doubt is, on a multiprocessor machine, could
it happen that multiple instances of the code in /sys/netinet are
run, in which case i should also have multiple instances of such
variables where i pass state ?

	luigi
-----------------------------+--------------------------------------
Luigi Rizzo                  |  Dip. di Ingegneria dell'Informazione
email: luigi@iet.unipi.it    |  Universita' di Pisa
tel: +39-50-568533           |  via Diotisalvi 2, 56126 PISA (Italy)
fax: +39-50-568522           |  http://www.iet.unipi.it/~luigi/
_____________________________|______________________________________

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?199807271345.PAA04072>