*/
if (ip_kotype(port) == IKOT_SEMAPHORE) {
require_ip_active(port);
- semaphore = (semaphore_t) port->ip_kobject;
+ semaphore = (semaphore_t) ip_get_kobject(port);
semaphore_reference(semaphore);
return semaphore;
}
require_ip_active(port);
assert(IKOT_SEMAPHORE == ip_kotype(port));
- semaphore_dereference((semaphore_t)port->ip_kobject);
+ semaphore_dereference((semaphore_t) ip_get_kobject(port));
}
lock_set_t