Lines Matching defs:handle
109 * key: caller's consumer handle (int)
110 * value: per-consumer data includes dtrace handle (consumer_t *)
150 int handle;
156 handle = (*jenv)->CallIntMethod(jenv, caller, g_gethandle_jm);
160 if (handle == NO_HANDLE) {
161 dtj_throw_illegal_state(jenv, "no consumer handle");
163 return (handle);
169 * Throws IllegalStateException if the caller does not have a valid handle.
170 * Throws NoSuchElementException if the caller's handle is not in the global
177 int handle = dtj_get_handle(jenv, caller);
178 if (handle == NO_HANDLE) {
183 if ((handle >= 0) && (handle < g_consumer_capacity)) {
184 consumer = g_consumer_table[handle];
193 dtj_throw_no_such_element(jenv, "consumer handle %d", handle);
213 * Postcondition: if successful, g_handle_seq is the handle of the consumer just
314 * Throws IllegalStateException if the caller does not have a valid handle.
320 int handle = dtj_get_handle(jenv, caller);
321 if (handle == NO_HANDLE) {
324 consumer = dtj_remove_consumer_at(handle);
329 * Returns NULL if there is no consumer with the given handle. Does not throw
333 dtj_remove_consumer_at(int handle)
338 if ((handle >= 0) && (handle < g_consumer_capacity)) {
339 consumer = g_consumer_table[handle];
341 g_consumer_table[handle] = NULL;
599 c->dtjc_dtp = dtp; /* set consumer handle to native DTrace library */
1290 * handle needed to release them (this function closes the dtrace
1291 * handle).
1703 * using the same dtrace handle.