G_PART macro definitions
perryh at pluto.rain.com
perryh at pluto.rain.com
Mon Nov 29 07:12:38 UTC 2010
"Andrey V. Elsukov" <bu7cher at yandex.ru> wrote:
> G_PART_XXX macros are scheme depended. They do call scheme-specific
> methods that are defined in g_part_xxx.c files. E.g. when "table"
> argument (kobj instance) is instance of MBR scheme, then G_PART_PROBE
> will call g_part_mbr_probe method.
Yes, I had figured that was probably the sort of thing that was
happening, but am looking for the details of how the macros are
defined (so I can figure out what they expand to) and how the
underlying data structures get initialized. For example, I would
expect to find -- somewhere -- some definitions along the lines of
#define G_PART_PROBE(table, cp) (*(table->XXX))(table, cp)
(for some, probably fairly complicated, value of XXX).
More information about the freebsd-geom
mailing list