From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot0-x22d.google.com (mail-ot0-x22d.google.com [IPv6:2607:f8b0:4003:c0f::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B4E8F21959CCC for ; Tue, 6 Jun 2017 09:31:18 -0700 (PDT) Received: by mail-ot0-x22d.google.com with SMTP id t31so18651713ota.1 for ; Tue, 06 Jun 2017 09:32:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=cXSpQbh9vSW2oUFzyhYauiHVN4MzmXo362pDKyrq8ww=; b=macnDLaIgUq4CVjE0kMz9GeIHWmro7XsOu9BHu3e1W/Y3zgAUFoOSyQ2SIw/0/s8nT PmSQk6XWdRBOFW2rCdgGcaGRDsoaFDCPOv4wGWQkgg2/BA1vslh5qUya/pcB7R5uT9+q JKB55N9nzZac+g4gKCmWHFnwDXa9/BuJ2lysqPAppiXxWUvMTOAzcadQhQLnyPGtDdax hD3+u/FjYU0UfcYgJmM0YsGURFvX0zU2s8/4LBettFd5VCOCDwif6Ld99PBWfM0a5Vhg YAtrBSUt0tOlnciy5SFRJnsH2KHcN6ARncEUnHrNBkKXBkzMm1jyKebPQ6GH9TZ7r9iv UrpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=cXSpQbh9vSW2oUFzyhYauiHVN4MzmXo362pDKyrq8ww=; b=g2Hb7Ki0ADmhkl4qhLqmPJNdSMQZjSLsGtPR+JACDgHeTqd59ILLrioEnOPWqvoLcl 92utJjYPQyNqRQwbTo6gdTup8CyMNkjXbpHWYAvhzDrOfPksp7O8UhTc4iGDYvo8lpme kAnJJg7pdpi5glEN3MXG82Y9Ce0w3v0dZcaCQ38i+XT5hkqnQqyIyHReLxv0SlwVzXB6 45j3MyDMq1VQkIsKcYtqy6+oBBCqPzhNEivyJ0NCM9FbTGgd8/JFY2f+JbtWsjj/4c+p jA0nhyPUP7g7T3b0llmSXqwv7/uKtjxnTW7bl6lJ7GWj2wCbYRbze2gx0iZdHaUASqB8 o5NQ== X-Gm-Message-State: AKS2vOyjabsg4uWeghTJD3gIHklp1Pny0hoBErWJUMAOweSR8RGfIaXg 1tM0G6s1Y5t47d60FZnARYcXyTM1oA== X-Received: by 10.157.3.182 with SMTP id f51mr8963386otf.144.1496766745046; Tue, 06 Jun 2017 09:32:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: GN Keshava Date: Tue, 06 Jun 2017 16:32:14 +0000 Message-ID: To: "Carsey, Jaben" , "edk2-devel@lists.01.org" X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Re: Issue in ConvertHandleIndexToHandle and ConvertHandleToHandleIndex X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2017 16:31:19 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks Jaben. I expected this answer. :) Definitely I can't do that as of now. But do you think this would cause mismatch between the handle index that i get in my application? The handle index I'm getting is differing, even if the handle value is same. And, could you suggest any other ways to fix this, other than embedding my app into the shell? Or do you suggest my temporary workaround , in which I'm embedding my own sermode functionality inside my application ? The functionality=E2=80=8B is= working and I'm able to use com port. But it's annoying to have different information in app than a shell command! :( Thanks again. Regards, Keshava On Tue, Jun 6, 2017, 9:45 PM Carsey, Jaben wrote: > In general, you should really try to avoid it. it means you have to buil= d > and distribute a complete shell instead of a single application. There a= re > some shell commands that simply cannot function without information not > available via the shell protocol. If you find you need information, then > maybe we should consider that missing information to be added to the shel= l > protocol. > > -Jaben > > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > > GN Keshava > > Sent: Tuesday, June 06, 2017 9:12 AM > > To: Carsey, Jaben ; edk2-devel@lists.01.org > > Subject: Re: [edk2] Issue in ConvertHandleIndexToHandle and > > ConvertHandleToHandleIndex > > Importance: High > > > > Hi Jaben, > > > > Thanks for the reply. > > > > > > I understand that the sermode command is in shell, and it's sharing > > information through libraries. > > > > > > Can you tell me more about the library requirement of module to be link= ed > > into shell? How i can do this? > > > > > > Thanks again. > > > > Regards, > > > > Keshava > > > > On Tue, Jun 6, 2017, 9:15 PM Carsey, Jaben > > wrote: > > > > > That library may require the module to be linked into the shell. > Remember > > > that the sermode command is actually in the same binary as the shell > and > > > the shell and the command are sharing information through libraries. > > > > > > > -----Original Message----- > > > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf > Of > > > > GN Keshava > > > > Sent: Tuesday, June 06, 2017 3:20 AM > > > > To: edk2-devel@lists.01.org > > > > Subject: [edk2] Issue in ConvertHandleIndexToHandle and > > > > ConvertHandleToHandleIndex > > > > Importance: High > > > > > > > > Hi, > > > > > > > > Thanks all for your kind help. > > > > > > > > I'm doing few operations using serial port. So, I've done a small > serial > > > > driver by referring FTDI code, and I'm accessing this using serialI= O > from > > > > my application. and it was working fine with older EFI shell. > > > > > > > > Now I'm using the latest UEFI shell. > > > > Now It's working fine for first time. Then if i do any removal and > > > connect > > > > of serial port, there is a mismatch in "Handle index" value between > the > > > one > > > > i get in my application, and the one i get in "sermode" command. > > > > > > > > I'm using the same code as sermode code, but still, for the same > Handle > > > > value, the handleIndex value is deferring. > > > > > > > > Whether ConvertHandleIndexToHandle and > > ConvertHandleToHandleIndex > > > > functions > > > > are giving issue? What could be the reason? > > > > > > > > Thanks again. > > > > Regards, > > > > Keshava > > > > _______________________________________________ > > > > edk2-devel mailing list > > > > edk2-devel@lists.01.org > > > > https://lists.01.org/mailman/listinfo/edk2-devel > > > > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel >