> I thought about this, but I am not sure how this is going to work. 
 > Specifically, when the registration is done and who initiate the 
 > registration?
 > 
 > Maybe I am missing something.

When libdladm is loaded[1], it could call a new function in libwladm to
get the list of properties libwladm supports along with function pointers
to call to set/get/check them and whatnot.  I'd need to work through the
code a bit to know if it's preferable to introducing a third library.

[1] e.g. via #pragma init -- see uu_init() in libuutil for an example.

-- 
meem

Reply via email to