G_PART macro definitions
Andrey V. Elsukov
bu7cher at yandex.ru
Mon Nov 29 06:05:24 UTC 2010
On 28.11.2010 12:11, perryh at pluto.rain.com wrote:
> I am trying to understand, in some detail, the operation of the
> g_part_taste and g_part_probe functions in sys/geom/part/g_part.c,
> and am having trouble figuring out exactly what the G_PART_PROBE
> and G_PART_READ macros do. Where will I find their definitions
> (in 8.1-RELEASE)?
>
> They don't seem to be in sys/geom/part/g_part.c itself, nor in
> sys/geom/part/g_part.h -- at least, not in a form that I've been
> able to recognize.
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.
--
WBR, Andrey V. Elsukov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20101129/5dad7ebc/signature.pgp
More information about the freebsd-geom
mailing list