configurable device (and other) tables in the kernel ?



I think there was some discussion on the topic some time ago
but cannot remember if there was any outcome so let me ask.

We have several tables in our kernel and modules,
containing at least device-id tables (pci, usb),
quirks for certain devices, and maybe more (i am excluding
firmware because it is not something where you may want
to change a few lines manually).

Right now we compile them statically in the code.
However sometimes it is useful to update them 'on the fly'
without having to rebuild a kernel/module - e.g. because
an entry (e.g. a quirk for a specific device) cannot be
safely included in the distribution, etc.etc.

What are the options to implement a mechanism that lets
userland update such tables, and maybe in a way that
is accessible to the boot loader ?

The (obvious) requirements are:
+ support for multiple tables with variable (maybe defined
at compile time) structure;
+ initial values should be compiled in;
+ the access mechanism should provide mechanism to read/modify/write/delete
entries;
+ human-readable (i.e. textual) representation of entries in userland,
with hooks to translate them in a machine-friendly format on writes,
and back on reads;

sysctl is the first method that comes to my mind, but
perhaps there is some better way ?

cheers
luigi
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Passing a hash by reference
    ... sub AddHashEntries ... sub PrintHashEntries ... print("\nAdded all entries OK"); ... I can't even get the PrintHashEntries routine to compile - I ...
    (comp.lang.perl.misc)
  • Re: Multiple references to same component in reference dialog
    ... I have several entries for components I evidently ... I use RegClean on XP/SP2. ... My expperience is that if I compile a project with or without binary ... the entry will still be in the registry and in the ...
    (microsoft.public.vb.general.discussion)
  • Re: collecting text througout the document to build lists
    ... I can not sort the entries by keywpords...I could live with this ... As a table of conents I would like to print the index at the ... Either it didn't compile or it didn't expand... ...
    (comp.text.tex)
  • Distinct list formula
    ... Does anyone know of a formula I could use to compile a distinct list of ... entries from another column. ... correponding values from some static data so it can be graphed. ... summergs's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=37419 ...
    (microsoft.public.excel.misc)