From owner-freebsd-current Mon Jul 27 08:39:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA06831 for freebsd-current-outgoing; Mon, 27 Jul 1998 08:39:28 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id IAA06817 for ; Mon, 27 Jul 1998 08:39:25 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id PAA04072 for current@freebsd.org; Mon, 27 Jul 1998 15:45:58 +0200 From: Luigi Rizzo Message-Id: <199807271345.PAA04072@labinfo.iet.unipi.it> Subject: SMP kernels... how many processes can be in ? To: current@FreeBSD.ORG Date: Mon, 27 Jul 1998 15:45:58 +0200 (MET DST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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