]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/ipc_clock.c
xnu-6153.141.1.tar.gz
[apple/xnu.git] / osfmk / kern / ipc_clock.c
index 800c7b857e390eccbdb61f66a7b9b23deb97e068..58c5a73877157a23a123bca9fef702b8bdeffbd5 100644 (file)
@@ -105,7 +105,7 @@ convert_port_to_clock(
                if (ip_active(port) &&
                    ((ip_kotype(port) == IKOT_CLOCK) ||
                    (ip_kotype(port) == IKOT_CLOCK_CTRL))) {
-                       clock = (clock_t) port->ip_kobject;
+                       clock = (clock_t)ip_get_kobject(port);
                }
                ip_unlock(port);
        }
@@ -131,7 +131,7 @@ convert_port_to_clock_ctrl(
                ip_lock(port);
                if (ip_active(port) &&
                    (ip_kotype(port) == IKOT_CLOCK_CTRL)) {
-                       clock = (clock_t) port->ip_kobject;
+                       clock = (clock_t) ip_get_kobject(port);
                }
                ip_unlock(port);
        }
@@ -195,7 +195,7 @@ port_name_to_clock(
                return clock;
        }
        if (ip_kotype(port) == IKOT_CLOCK) {
-               clock = (clock_t) port->ip_kobject;
+               clock = (clock_t) ip_get_kobject(port);
        }
        ip_unlock(port);
        return clock;