From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (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 DADB11A1E3C for ; Tue, 18 Oct 2016 10:18:29 -0700 (PDT) Received: by mail-it0-x22b.google.com with SMTP id 4so88192592itv.0 for ; Tue, 18 Oct 2016 10:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=fptnibUumOt4EpMmOfZjRf3q6pcnudKs1YUMlKylw10=; b=SE+UZqSoVKzYIXTBoaNiA+tfetlP1xARj5tSZ1lGZJls9FSltl1I+PLcNm1WbeZO6v AjEn6sncnaPb4mCYtNQExh4sGsjXoJ+YD9Um27x6qGvJuRDYfHnlhIOVhH4pQsTaWHkp y5G2uDXutDy6tg1a95vWKVDFt+ZO45BtkTNu8dbN3JZCV1QksIfcJpTMwp7B2Bl0lx8V XESuG4uMUkrkSnG6Nv9teMfNttMQywAKkMq+Cz3/HmJUKGdk3MUVyix3u1NwCOt7w6rK YHP3TE0bLPOISvJX+jeY0p9sLZhJAFrljCxvvI8lsILsIHSvA/QKETk7CADkBKMIyksq mh+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=fptnibUumOt4EpMmOfZjRf3q6pcnudKs1YUMlKylw10=; b=a9K+UkX3FuWWwetmP6N/ljfFyELMDdzNBNFwfE/fny2waxHSWMpLIwnJKiWQMrOKzo heecNfQbyMy6j55eeTFtOd1ke37mkZXSfpx0Uq66DMy2GOjQe/JFQ/otZ3pn7GSOrpeY MCi36poCLeWRxaVJCdHUICzDk4n9FVeZakybuY97JAPqixHFBH63HIAVr5Aw9Z6WZpJ9 AdO0YtxuGlOwB6XnRdYRmENp8VzH7VRjKf5XXnLtIfBrujzcz7+tIp7Vw2XUIqXLfQtW cu52iXBSci0hXyEshGGitXA78viMzvIbrrj3LEAjEd0AWSqMzu67Q/WZWrcwnvc4qe4Q qXzA== X-Gm-Message-State: AA6/9RkUSqqHq+MQ0FNHQWwUT74l4ZyhfoLSlEZ/BDM0GbLmMTNFMab9i1Q7TzgxIc+lFKdG8HEmLMzbiBYCrg== X-Received: by 10.36.48.74 with SMTP id q71mr14293874itq.116.1476811108926; Tue, 18 Oct 2016 10:18:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.68.18 with HTTP; Tue, 18 Oct 2016 10:18:28 -0700 (PDT) From: Saqib Khan Date: Tue, 18 Oct 2016 22:18:28 +0500 Message-ID: To: edk2-devel@lists.01.org X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: How to get BBS_BBS_DEVICE_PATH from BOOTXXXX variable X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2016 17:18:30 -0000 Content-Type: text/plain; charset=UTF-8 Hi, I can not find structure of BOOTXXXX variable, Can any one help how to extract device path from BOOTXXXX variable. here is code i have attempt (rEFind) *UINT8 *Value;* *Status = gRT->GetVariable ((CHAR16 *)Name, &gEfiGlobalVariableGuid, NULL, &BootVariableSize, Value); //print attribute /*Check if device boot variable is legacy*/ Ptr = Value; Ptr += sizeof (UINT32); DevPathLen = *(UINT16 *) Ptr; Ptr += sizeof (UINT16); Ptr += StrSize ((UINT16 *) Ptr); DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) Ptr; Print (L"Paths: %s\n",ConvertDevicePathToText (DevicePath,TRUE,TRUE));* -- Regards Saqib