Lines Matching refs:env

43 getCookie(JNIEnv *env, jclass clazz, jobject obj)  in getCookie()  argument
47 fid = (*env)->GetFieldID(env, clazz, "cookie", "J"); in getCookie()
48 return ((lgrp_cookie_t)(*env)->GetLongField(env, obj, fid)); in getCookie()
55 throwException(JNIEnv *env, const char *class, const char *msg) in throwException() argument
59 clazz = (*env)->FindClass(env, class); in throwException()
61 (*env)->ThrowNew(env, clazz, msg); in throwException()
73 Java_com_sun_solaris_service_locality_LocalityDomain_jl_1init(JNIEnv *env, in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1init() argument
79 throwException(env, "java/lang/Exception", in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1init()
91 Java_com_sun_solaris_service_locality_LocalityDomain_jl_1fini(JNIEnv *env, in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1fini() argument
96 clazz = (*env)->GetObjectClass(env, obj); in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1fini()
97 return ((jint)lgrp_fini(getCookie(env, clazz, obj))); in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1fini()
105 Java_com_sun_solaris_service_locality_LocalityDomain_jl_1root(JNIEnv *env, in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1root() argument
113 clazz = (*env)->GetObjectClass(env, obj); in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1root()
115 root = (jlong) lgrp_root(getCookie(env, clazz, obj)); in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1root()
117 clazz = (*env)->FindClass(env, "com/sun/solaris/service/locality/" in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1root()
119 mid = (*env)->GetMethodID(env, clazz, "<init>", "(Lcom/sun/solaris/" in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1root()
122 lgrp = (*env)->NewObject(env, clazz, mid, obj, root, NULL); in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1root()
131 Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children(JNIEnv *env, in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children() argument
145 clazz = (*env)->GetObjectClass(env, obj); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children()
146 fid = (*env)->GetFieldID(env, clazz, "domain", in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children()
148 domain = (*env)->GetObjectField(env, obj, fid); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children()
150 cookie = getCookie(env, (*env)->GetObjectClass(env, domain), domain); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children()
151 fid = (*env)->GetFieldID(env, clazz, "id", "J"); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children()
152 id = (*env)->GetLongField(env, obj, fid); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children()
155 children = (*env)->NewLongArray(env, nchild0); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children()
157 throwException(env, "java/lang/Exception", in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children()
168 throwException(env, "java/lang/Exception", in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children()
176 (*env)->SetLongArrayRegion(env, children, 0, nchild, java_child); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children()
187 Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus(JNIEnv *env, in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus() argument
201 clazz = (*env)->GetObjectClass(env, obj); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus()
202 fid = (*env)->GetFieldID(env, clazz, "domain", in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus()
204 domain = (*env)->GetObjectField(env, obj, fid); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus()
206 cookie = getCookie(env, (*env)->GetObjectClass(env, domain), domain); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus()
208 fid = (*env)->GetFieldID(env, clazz, "id", "J"); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus()
209 id = (*env)->GetLongField(env, obj, fid); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus()
213 cpus = (*env)->NewIntArray(env, ncpus0); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus()
215 throwException(env, "java/lang/Exception", in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus()
228 throwException(env, "java/lang/Exception", in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus()
235 (*env)->SetIntArrayRegion(env, cpus, 0, ncpus, java_cpus); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus()
246 Java_com_sun_solaris_service_locality_LocalityGroup_jl_1latency(JNIEnv *env, in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1latency() argument