[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3] Add a module for retrieving SMBIOS information
From: |
Andrei Borzenkov |
Subject: |
Re: [PATCH v3] Add a module for retrieving SMBIOS information |
Date: |
Fri, 27 Mar 2015 16:22:23 +0300 |
В Fri, 27 Mar 2015 13:59:06 +0100
Vladimir 'φ-coder/phcoder' Serbinenko <address@hidden> пишет:
> Could we avoid exposing such details as offset in structures? It's way
> too technical perhaps something like
> smbios [--handle=HANDLE|--instance=N] [--set VAR] [TABLE.VARNAME]
> where table and varname will be string identifiers and would be
> translated using dictionaries. TABLE.VARNAME as whole string can be the
> key, that format is just to avoid conflicts when similar fields are
> exported in different tables. You can just put the vars you care about
> in the dictionary.
Do you mean something like "BIOS Information.BIOS Characteristics
Extension Bytes"? Because otherwise where these names should come from
and how users will know them? SMBIOS at the end is defined in terms of
structure offsets. I suppose that any user of this command will know
them.
Either we will limit ourselves to known names documented in grub
manual, but even then documentation will have to say "foo.bar refers to
table bar at offset XX". Not sure how is it better.