public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "memristor2 via groups.io" <memristor2=proton.me@groups.io>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: [edk2-devel] Redfishlib: How does it work?
Date: Mon, 19 Aug 2024 12:04:36 +0000	[thread overview]
Message-ID: <nTiwZcbNPKtYP1otlqEta4jLMQ5AuBpqa52aVkB5HceuS_6M84YBnFrr27BgD1oMHiR36HO5C8bi4qAqE5pGVGe23jNTE7wYJgj0FZocGdw=@proton.me> (raw)

[-- Attachment #1: Type: text/plain, Size: 1807 bytes --]

Hello everyone,
I am trying to develop Redfish on my platform. I got a few questions about the development process of Redfish.

- Studying the libraries I see this RedfishLib which provides some API's but there isn't much specification on how to implement these APIs. My guess is I should start with the RedfishCreateService? But this needs a REDFISH_CONFIG_SERVICE_INFORMATION structure to have its RedfishServiceRestExHandle initialized. How is this going to work? My guess is by using OpenProtocol?

- Since i was trying to use the provided Redfishlib I realized I need to call the RedfishConfigHandlerDriver driver to call a callback function whenever the gEdkIIRedfishConfigHandlerProtocolGuid gets installed and then execute the RedfishConfigHandlerInitialization and then I would have the gRedfishConfigData.RedfishServiceInfo filled out with the instance so I could eventually use this function RedfishCreateService (this is my assumption even though I highly doubt it would be correct). But the problem is that there are NO drivers installing the gEdkIIRedfishConfigHandlerProtocolGuid protocol. In fact the function registered to this protocol tries to locate it. What driver is going to install this protocol? I know the callback function gets called even if no driver installs the protocol but what is the point if there is no drivers installing that protocol?

Thanks,
Memristor

Sent with [Proton Mail](https://proton.me/) secure email.

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120365): https://edk2.groups.io/g/devel/message/120365
Mute This Topic: https://groups.io/mt/107978990/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 3410 bytes --]

             reply	other threads:[~2024-08-19 12:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-19 12:04 memristor2 via groups.io [this message]
2024-08-19 13:43 ` [edk2-devel] Redfishlib: How does it work? Nickle Wang via groups.io
2024-08-20  6:59   ` memristor2 via groups.io

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='nTiwZcbNPKtYP1otlqEta4jLMQ5AuBpqa52aVkB5HceuS_6M84YBnFrr27BgD1oMHiR36HO5C8bi4qAqE5pGVGe23jNTE7wYJgj0FZocGdw=@proton.me' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox