From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Kab84-0004O1-LY for mharc-grub-devel@gnu.org; Tue, 02 Sep 2008 15:01:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kab82-0004Kp-LH for grub-devel@gnu.org; Tue, 02 Sep 2008 15:01:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kab81-0004JV-Mo for grub-devel@gnu.org; Tue, 02 Sep 2008 15:01:25 -0400 Received: from [199.232.76.173] (port=47063 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kab81-0004J0-HJ for grub-devel@gnu.org; Tue, 02 Sep 2008 15:01:25 -0400 Received: from fg-out-1718.google.com ([72.14.220.152]:57125) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kab80-0005VW-SD for grub-devel@gnu.org; Tue, 02 Sep 2008 15:01:25 -0400 Received: by fg-out-1718.google.com with SMTP id l26so1652696fgb.30 for ; Tue, 02 Sep 2008 12:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=H2aMX9ZJfEDQgp6LT83AC2ntlyRQ5rrxfgq0ddX0RTQ=; b=OU9bm30Gi9xOBmvagiXAU3Oa8nyTYBwGAJV1aqTAgp49/tBHvBVzSjnZHhAX30iPXT esmaUpZC38ARcz7BCC2CjUt+PSnSQtzeiJ0ynnCPWgrIntNfeUwcxFpRQ1Chph/J8WxB qHILj5rdpLHuBS2sFhUn7zHL8+Xq7jYEv0l2o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=iYMvrB9KVMbC9SVtZdmilaoYDNm7rl9dVoINEYN5QKJWqgwZ4XWorwoKPl6NrCgUCj rK8Hlf/Iu70GTISg+EbHYV03tiNtJQMogmgKfT/U0fWw+T1HRyuc4LaikrGlumeC452f CZa1kMtpAysJqFOi9ZkkXAbovo801ZhNENnAo= Received: by 10.86.82.6 with SMTP id f6mr5893894fgb.53.1220382083806; Tue, 02 Sep 2008 12:01:23 -0700 (PDT) Received: from ?192.168.1.15? ( [83.76.170.177]) by mx.google.com with ESMTPS id e20sm7422910fga.1.2008.09.02.12.01.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Sep 2008 12:01:22 -0700 (PDT) Message-ID: <48BD8D7E.8040501@gmail.com> Date: Tue, 02 Sep 2008 21:01:18 +0200 From: phcoder User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: The development of GRUB 2 References: <48BD4C52.6040308@gmail.com> <1220367299.23879.15.camel@localhost> <48BD62BE.7090507@gmail.com> <48BD67AD.8040209@nic.fi> In-Reply-To: <48BD67AD.8040209@nic.fi> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: Sendkey patch X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 19:01:27 -0000 Well the interface is as we described: the module gives a callback function which will be called before launching boot function. This interface is enough for both (and probaly many other) needs. The only problem is that callback functions can conflict with each other and with boot function. E.g. if callback sets an INT13h hook and then boot function reads harddrive then it could get wrong data. In my opinion the ese callback and boot functions shouldn't use device access at all. This is especially true because theese functions are after grub_machine_fini. > > This way it would be also easier to incorporate patches as there is > already skeleton that can be used easily. > There could several templates for using such feature because it's quite universal Vladimir Serbinenko