From owner-freebsd-questions@freebsd.org Thu Jun 15 18:59:46 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2F41FB9436A for ; Thu, 15 Jun 2017 18:59:46 +0000 (UTC) (envelope-from vijju.singh@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 08D6280193 for ; Thu, 15 Jun 2017 18:59:46 +0000 (UTC) (envelope-from vijju.singh@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 04F44B94368; Thu, 15 Jun 2017 18:59:46 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04855B94367 for ; Thu, 15 Jun 2017 18:59:46 +0000 (UTC) (envelope-from vijju.singh@gmail.com) Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com [IPv6:2a00:1450:4010:c07::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7B95680192 for ; Thu, 15 Jun 2017 18:59:45 +0000 (UTC) (envelope-from vijju.singh@gmail.com) Received: by mail-lf0-x235.google.com with SMTP id m77so14331816lfe.0 for ; Thu, 15 Jun 2017 11:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=gggAv1koas4+1FBQ7PIOfUJbjwOkY0Gi7DsA/PDHsKk=; b=H4t9Zftr3EADbOPbyAL/IO4Xgu46NXruZC8s0GqAutCaxK2+x8SpYGv8aCW1a0G4ug zOyJnvLMW48fuC765e0qrA09gGBAZcKeZF9G/znrHOKBbFd86E8DBrp7Q7dzevfLBtNd KD0GEMHuPyHtAWm5m8TGCWf8UicHDHtmK/4I6VJnIDmfxB7Q7VSukW02AELRbeCZ76WV FbHEcK4z1BBzMve9ZPi0nT5TGfs8uYSRi/WScUgki2HNNS9UvObqBhzaVM7OMJgRjWBz Sy1Ql9qLs2rE573XzJgYijyBGkRDszeadmm2BFOboJSd1INdUHp6yvBQDNctO25XBQBi jKGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=gggAv1koas4+1FBQ7PIOfUJbjwOkY0Gi7DsA/PDHsKk=; b=BwKkeeVxAM8NXDKzPU6RWHcy+3gsX8syjDawgxHdKh5/eyP5hVourlymYBwFO+q3i4 ixJ+ePHq79uj/UoLwvGECGAdu9odFoDVQLhlfMZA+xchFyEvKeCqCDZbRe8fls+F8n5q pp8tyvW+pz2cXHRwO6m40BfmNYjyDT+NU6q/1Ap1/b3EFLVBPvJIOYkRjNlxuZBeKTnY DO2JPZgmJePep+ftxN4s/bEYyZZtCiP5r+xyVPZWkC0GJoogqVPhK/dVvvtsywQFCVsK 0ZgZa71uE/Q/ZyGQZWJbYnZJizDmxfBOYjpxcjNiP7D2eQOopZGaAigiB8zlodXqEcpI Cv4A== X-Gm-Message-State: AKS2vOzW0O9J+Ijj0A7ejryjk54350ZBJvCoycR3iupTUz3v9iK5DnQJ K3jCEXDiwhR7KLiP9029aYfWWkdMwQ== X-Received: by 10.25.67.76 with SMTP id m12mr2287667lfj.84.1497553183210; Thu, 15 Jun 2017 11:59:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.193.79 with HTTP; Thu, 15 Jun 2017 11:59:42 -0700 (PDT) Received: by 10.25.193.79 with HTTP; Thu, 15 Jun 2017 11:59:42 -0700 (PDT) In-Reply-To: References: From: Vijay Singh Date: Thu, 15 Jun 2017 11:59:42 -0700 Message-ID: Subject: sysctl proc entered twice To: questions@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2017 18:59:46 -0000 I am implementing a sysctl proc in the kernel to print some custom counters. I am seeing that the proc handler is called twice each time I invoke "sysctl oid". Is this expected? PS: the proc is setup as string|rd.