Hi Dan,
I am done with the simple case of the the kernel door upcall and start to
work on the libdladm door calls.
First, do we agree that dladm_datalink_xxx() function will only be used to
persistent link configuration, with the exception that we also needs
function to allocate and free linkids for temporary links? If so, to get the
linkid of a temporarily created links, is the below process right?
dladm_datalink_create(name, class, &dh);
dladm_datalink_commit(dh);
dladm_datalink_get_id(name, &linkid);
It seems complicated.
Second, I'd like to add an argument to indicate whether the lock is read or
write in the dladm_datalink_lock() function.
Third, I am not sure what's conclusion that whether the
dladm_datalink_create() takes the argument to indicate a link is persistent
or temporary, or dladm_datalink_commit() takes that argument?
Please let me know.
Thanks
- Cathy