From owner-freebsd-acpi@FreeBSD.ORG Sun Feb 3 10:52:16 2008 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4E5016A417 for ; Sun, 3 Feb 2008 10:52:16 +0000 (UTC) (envelope-from cihan@enderunix.org) Received: from istanbul.enderunix.org (freefall.marmara.edu.tr [193.140.143.23]) by mx1.freebsd.org (Postfix) with ESMTP id BB78613C43E for ; Sun, 3 Feb 2008 10:52:15 +0000 (UTC) (envelope-from cihan@enderunix.org) Received: (qmail 51829 invoked by uid 1040); 3 Feb 2008 10:24:16 -0000 Received: from unknown (HELO localhost) (cihan@85.105.200.118) by 0 with ESMTPA; 3 Feb 2008 10:24:15 -0000 Date: Sun, 3 Feb 2008 12:24:03 +0200 From: =?utf-8?B?Q2loYW4gS8O2bWXDp2/En2x1?= X-Mailer: The Bat! (v3.99.29) UNREG X-Priority: 3 (Normal) Message-ID: <406342466.20080203122403@enderunix.org> To: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Antivirus: avast! (VPS 080202-0, 02.02.2008), Outbound message X-Antivirus-Status: Clean X-SMTP-Filter: SurGATE SMTP Filter Engine Release 1.0.1 http://www.endersys.com X-SurGATE-Result: Clean (Content eval: -4.40 points) Subject: get mAh value in state file? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Feb 2008 10:52:16 -0000 Dear list I have to write a c program which gets mAh value for battery energy measurement from state file. I need to know wheter ACPI send any signal or like when this values will be written to state file. That is , How can I know when this values will be written? And the second question , for file locking mechanism when I read this value from state file What do I have to use?(maybe flock function?) --=20 Cihan K=F6me=E7o=F0lu, EnderUNIX SDT mailto:cihan@enderunix.org