Searched refs:callback (Results 1 - 25 of 38) sorted by relevance

12

/xnu-2422.115.4/osfmk/kdp/ml/i386/
H A Dkdp_x86_common.h39 * Results are returned via a callback. If the callback returns an error,
49 pmap_traverse_callback callback,
H A Dkdp_x86_common.c410 pmap_traverse_callback callback,
445 ret = callback(vcurstart, vcur, context);
472 ret = callback(vcurstart, vcur, context);
407 pmap_traverse_present_mappings(pmap_t pmap, vm_map_offset_t start, vm_map_offset_t end, pmap_traverse_callback callback, void *context) argument
/xnu-2422.115.4/osfmk/profiling/
H A Dprofile-internal.h64 struct callback;
99 ACONTEXT_CALLBACK, /* 7: callback structures */
113 "callback", \
218 struct callback { struct
219 void *sec_ptr; /* callback user data */
220 /* callback function */
221 size_t (*callback)(struct profile_vars *, struct callback *); member in struct:callback
253 size_t callback_size; /* size of callback structure */
348 extern size_t _gprof_write(struct profile_vars *, struct callback *);
[all...]
H A Dprofile-kgmon.c46 * Add callback function to _profile_kgmon.
101 static struct callback dummy_callback;
/xnu-2422.115.4/libkern/libkern/c++/
H A DOSSerialize.h303 OSSerializerCallback callback; member in class:OSSerializer
309 OSSerializerCallback callback,
/xnu-2422.115.4/libkern/c++/
H A DOSSerialize.cpp248 OSSerializerCallback callback, void * ref )
261 thing->callback = callback;
268 return( (*callback)(target, ref, s) );
247 forTarget( void * target, OSSerializerCallback callback, void * ref ) argument
/xnu-2422.115.4/osfmk/UserNotification/
H A DKUNCUserNotifications.c59 KUNCUserNotificationCallBack callback;
153 if (reply->callback) {
154 (reply->callback)((int)(KUNCUserNotificationID)reply, result, dict);
348 KUNCUserNotificationCallBack callback,
363 reply->callback = callback;
341 KUNCUserNotificationDisplayFromBundle( KUNCUserNotificationID id, char *bundlePath, char *fileName, char *fileExtension, char *messageKey, char *tokenString, KUNCUserNotificationCallBack callback, __unused int contextKey) argument
H A DKUNCUserNotifications.h185 * back to the client in the callback pararmeter contextKey
232 KUNCUserNotificationCallBack callback,
/xnu-2422.115.4/bsd/sys/
H A Dkpi_socket.h101 @param callback A notifier function to be called when an event
103 @param cookie A cookie passed directly to the callback.
109 int flags, sock_upcall callback, void *cookie, socket_t *new_so);
361 @param callback A notifier function to be called when an event
363 @param cookie A cookie passed directly to the callback.
368 sock_upcall callback, void *cookie, socket_t *new_so);
467 the appropriate socket filter callback (sf_attach) which gets
471 during the sf_attach callback, and therefore the value is
472 safe to be used only in that callback context. Callers should
474 held throughout the duration of the callback
[all...]
/xnu-2422.115.4/bsd/vfs/
H A Dvfs_cluster.c191 static int cluster_read_prefetch(vnode_t vp, off_t f_offset, u_int size, off_t filesize, int (*callback)(buf_t, void *), void *callback_arg, int bflag);
192 static void cluster_read_ahead(vnode_t vp, struct cl_extent *extent, off_t filesize, struct cl_readahead *ra, int (*callback)(buf_t, void *), void *callback_arg, int bflag);
444 cluster_syncup(vnode_t vp, off_t newEOF, int (*callback)(buf_t, void *), void *callback_arg) argument
453 cluster_try_push(wbp, vp, newEOF, PUSH_ALL | PUSH_SYNC, 0, callback, callback_arg);
806 * async callback completion will not normally
813 * completed the callback function... only then
884 int flags, buf_t real_bp, struct clios *iostate, int (*callback)(buf_t, void *), void *callback_arg)
1437 cbp->b_cliodone = (void *)callback;
1646 int io_flag, buf_t real_bp, struct clios *iostate, int (*callback)(buf_t, void *), void *callback_arg)
1656 return (cluster_io(vp, vector_upl, vector_upl_offset, v_upl_uio_offset, vector_upl_iosize, io_flag, real_bp, iostate, callback, callback_ar
883 cluster_io(vnode_t vp, upl_t upl, vm_offset_t upl_offset, off_t f_offset, int non_rounded_size, int flags, buf_t real_bp, struct clios *iostate, int (*callback)(buf_t, void *), void *callback_arg) argument
1645 vector_cluster_io(vnode_t vp, upl_t vector_upl, vm_offset_t vector_upl_offset, off_t v_upl_uio_offset, int vector_upl_iosize, int io_flag, buf_t real_bp, struct clios *iostate, int (*callback)(buf_t, void *), void *callback_arg) argument
1661 cluster_read_prefetch(vnode_t vp, off_t f_offset, u_int size, off_t filesize, int (*callback)(buf_t, void *), void *callback_arg, int bflag) argument
1688 cluster_read_ahead(vnode_t vp, struct cl_extent *extent, off_t filesize, struct cl_readahead *rap, int (*callback)(buf_t, void *), void *callback_arg, int bflag) argument
1777 cluster_pageout_ext(vnode_t vp, upl_t upl, upl_offset_t upl_offset, off_t f_offset, int size, off_t filesize, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument
1853 cluster_pagein_ext(vnode_t vp, upl_t upl, upl_offset_t upl_offset, off_t f_offset, int size, off_t filesize, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument
1918 cluster_bp_ext(buf_t bp, int (*callback)(buf_t, void *), void *callback_arg) argument
1948 cluster_write_ext(vnode_t vp, struct uio *uio, off_t oldEOF, off_t newEOF, off_t headOff, off_t tailOff, int xflags, int (*callback)(buf_t, void *), void *callback_arg) argument
2086 cluster_write_direct(vnode_t vp, struct uio *uio, off_t oldEOF, off_t newEOF, int *write_type, u_int32_t *write_length, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument
2479 cluster_write_contig(vnode_t vp, struct uio *uio, off_t newEOF, int *write_type, u_int32_t *write_length, int (*callback)(buf_t, void *), void *callback_arg, int bflag) argument
2713 cluster_write_copy(vnode_t vp, struct uio *uio, u_int32_t io_req_size, off_t oldEOF, off_t newEOF, off_t headOff, off_t tailOff, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument
3362 cluster_read_ext(vnode_t vp, struct uio *uio, off_t filesize, int xflags, int (*callback)(buf_t, void *), void *callback_arg) argument
3463 cluster_read_copy(vnode_t vp, struct uio *uio, u_int32_t io_req_size, off_t filesize, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument
3988 cluster_read_direct(vnode_t vp, struct uio *uio, off_t filesize, int *read_type, u_int32_t *read_length, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument
4510 cluster_read_contig(vnode_t vp, struct uio *uio, off_t filesize, int *read_type, u_int32_t *read_length, int (*callback)(buf_t, void *), void *callback_arg, int flags) argument
4799 advisory_read_ext(vnode_t vp, off_t filesize, off_t f_offset, int resid, int (*callback)(buf_t, void *), void *callback_arg, int bflag) argument
4986 cluster_push_ext(vnode_t vp, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument
5131 cluster_try_push(struct cl_writebehind *wbp, vnode_t vp, off_t EOF, int push_flag, int io_flags, int (*callback)(buf_t, void *), void *callback_arg) argument
5307 cluster_push_now(vnode_t vp, struct cl_extent *cl, off_t EOF, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument
5480 sparse_cluster_switch(struct cl_writebehind *wbp, vnode_t vp, off_t EOF, int (*callback)(buf_t, void *), void *callback_arg) argument
5513 sparse_cluster_push(void **scmap, vnode_t vp, off_t EOF, int push_flag, int io_flags, int (*callback)(buf_t, void *), void *callback_arg) argument
5544 sparse_cluster_add(void **scmap, vnode_t vp, struct cl_extent *cl, off_t EOF, int (*callback)(buf_t, void *), void *callback_arg) argument
5571 cluster_align_phys_io(vnode_t vp, struct uio *uio, addr64_t usr_paddr, u_int32_t xsize, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument
[all...]
H A Dvfs_journal.h152 void (*flush)(void *arg); // fs callback to flush meta data blocks
333 void journal_trim_set_callback(journal *jnl, jnl_trim_callback_t callback, void *arg);
361 * identify the location and size of the journal from the callback routine.
364 errno_t (*callback)(void *), void *callback_arg);
H A Dvfs_journal.c160 static int finish_end_transaction(transaction *tr, errno_t (*callback)(void*), void *callback_arg);
161 static int end_transaction(transaction *tr, int force_it, errno_t (*callback)(void*), void *callback_arg, boolean_t drop_lock, boolean_t must_wait);
545 // This is our callback that lets us know when a buffer has been
2967 ; error when trying to write to the journal), this callback
2973 ; callback - The function to call when the TRIM is complete.
2974 ; arg - An argument to be passed to callback.
2978 journal_trim_set_callback(journal *jnl, jnl_trim_callback_t callback, void *arg) argument
2980 jnl->trim_callback = callback;
3571 * error when trying to write to the journal), this callback
3647 * An optional callback ca
3667 end_transaction(transaction *tr, int force_it, errno_t (*callback)(void*), void *callback_arg, boolean_t drop_lock, boolean_t must_wait) argument
3972 finish_end_transaction(transaction *tr, errno_t (*callback)(void*), void *callback_arg) argument
[all...]
/xnu-2422.115.4/osfmk/kern/
H A Dsyscall_subr.c206 sched_call_t callback = workqueue_get_sched_callback(); local
208 if (!callback || self->sched_call != callback) {
222 sched_call_t callback = workqueue_get_sched_callback(); local
226 thread_sched_call(self, callback);
H A Dledger.h82 * Types of warnings that trigger a callback.
96 ledger_callback_t callback, const void *param0, const void *param1);
/xnu-2422.115.4/iokit/IOKit/
H A DIOUserClient.h259 void *callback, void *refcon);
277 mach_vm_address_t callback, io_user_reference_t refcon);
281 mach_vm_address_t callback, io_user_reference_t refcon,
/xnu-2422.115.4/bsd/kern/
H A Dkern_authorization.c83 * requests that may be in their callback code or on the way to their callback
121 static kauth_scope_t kauth_alloc_scope(const char *identifier, kauth_scope_callback_t callback, void *idata);
122 static kauth_listener_t kauth_alloc_listener(const char *identifier, kauth_scope_callback_t callback, void *idata);
184 kauth_alloc_scope(const char *identifier, kauth_scope_callback_t callback, void *idata) argument
197 sp->ks_callback = callback;
202 kauth_alloc_listener(const char *identifier, kauth_scope_callback_t callback, void *idata) argument
214 lsp->kl_callback = callback;
219 kauth_register_scope(const char *identifier, kauth_scope_callback_t callback, void *idata) argument
224 if ((sp = kauth_alloc_scope(identifier, callback, idat
301 kauth_listen_scope(const char *identifier, kauth_scope_callback_t callback, void *idata) argument
[all...]
H A Dkpi_socket.c56 sock_upcall callback, void *cookie, socket_t *new_sock)
146 if (callback != NULL) {
147 sock_setupcalls_common(new_so, callback, cookie, NULL, NULL);
888 sock_socket(int domain, int type, int protocol, sock_upcall callback, argument
900 if (callback != NULL) {
901 sock_setupcalls_common(*new_so, callback, context,
1017 * called by a socket filter during a filter attach (sf_attach) callback.
1019 * context of that callback, because we hold the listener's lock across
1132 sock_setupcall(socket_t sock, sock_upcall callback, void *context) argument
1140 * callbacks to be set; on desktop, only read callback i
55 sock_accept(socket_t sock, struct sockaddr *from, int fromlen, int flags, sock_upcall callback, void *cookie, socket_t *new_sock) argument
[all...]
H A Dkdebug.c104 kd_callback_t callback; member in struct:kd_iop
373 assert(temp->callback.func);
374 assert(strlen(temp->callback.iop_name) < sizeof(temp->callback.iop_name));
404 kprintf("%s is sending trace events that have gone backwards in time. Run the following command: \"symbols -2 -lookup 0x%p\" and file a radar against the matching kext.\n", list->callback.iop_name, (void*)list->callback.func);
421 iop->callback.func(iop->callback.context, type, arg);
812 kernel_debug_register_callback(kd_callback_t callback) argument
816 memcpy(&iop->callback,
[all...]
H A Dkern_symfile.c180 kern_get_file_extents_callback_t callback,
389 callback(callback_ref, getphysreq.offset + getphysreq.length - rev, 4096);
392 callback(callback_ref, getphysreq.offset, getphysreq.length);
398 callback(callback_ref, 0ULL, 0ULL);
179 kern_open_file_for_direct_io(const char * name, kern_get_file_extents_callback_t callback, void * callback_ref, off_t set_file_size, off_t write_file_offset, caddr_t write_file_addr, vm_size_t write_file_len, dev_t * partition_device_result, dev_t * image_device_result, uint64_t * partitionbase_result, uint64_t * maxiocount_result, uint32_t * oflags) argument
H A Dkern_event.c158 static int kqueue_process(struct kqueue *kq, kevent_callback_t callback,
162 static int knote_process(struct knote *kn, kevent_callback_t callback,
1562 * kevent_callback - callback for each individual event
1846 * If it is still considered triggered, invoke the callback
1855 kevent_callback_t callback,
1874 * Triggered events must fill in kev for the callback.
1996 /* callback to handle each event as we find it */
1997 error = (callback)(kq, &kev, data);
2055 * callback routine provided.
2064 kevent_callback_t callback,
1854 knote_process(struct knote *kn, kevent_callback_t callback, void *data, struct kqtailq *inprocessp, struct proc *p) argument
2063 kqueue_process(struct kqueue *kq, kevent_callback_t callback, void *data, int *countp, struct proc *p) argument
2183 kqueue_scan(struct kqueue *kq, kevent_callback_t callback, kqueue_continue_t continuation, void *data, struct timeval *atvp, struct proc *p) argument
[all...]
/xnu-2422.115.4/libkern/
H A DOSKextLib.cpp164 OSKextRequestResourceCallback callback,
169 callback, context, requestTagOut);
161 OSKextRequestResource( const char * kextIdentifier, const char * resourceName, OSKextRequestResourceCallback callback, void * context, OSKextRequestTag * requestTagOut) argument
/xnu-2422.115.4/pexpert/i386/
H A Dpe_init.c266 void PE_register_timebase_callback(timebase_callback_func callback) argument
268 gTimebaseCallback = callback;
/xnu-2422.115.4/libkern/libkern/
H A DOSKextLib.h576 * There is no general notification or callback mechanism for load requests.
711 * @param requestTag The tag of the request that the callback pertains to.
721 * if the kext containing the callback
726 * if it needs to keep the data past the callback.
748 * @param callback A pointer to a callback function; the address
751 * that will be passed to the callback
767 * <code>callback</code> is not an address within a loaded kext executable.
770 * on the kext containing <code>callback</code>.
783 * in the callback functio
[all...]
/xnu-2422.115.4/pexpert/pexpert/
H A Dpexpert.h119 void PE_register_timebase_callback(timebase_callback_func callback);
/xnu-2422.115.4/iokit/Kernel/
H A DIOKitKernelInternal.h68 IOIteratePageableMapsCallback callback, void * ref);

Completed in 191 milliseconds

12