Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Nov 2010 23:07:36 -0800
From:      perryh@pluto.rain.com
To:        bu7cher@yandex.ru
Cc:        freebsd-geom@freebsd.org
Subject:   Re: G_PART macro definitions
Message-ID:  <4cf35138.VleaJCYj4z5kd9WX%perryh@pluto.rain.com>
In-Reply-To: <4CF34297.4070300@yandex.ru>
References:  <4cf21cd3.UbQ57eYkszW60Ww4%perryh@pluto.rain.com> <4CF34297.4070300@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
"Andrey V. Elsukov" <bu7cher@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).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4cf35138.VleaJCYj4z5kd9WX%perryh>