Home
last modified time | relevance | path

Searched refs:hook (Results 1 – 25 of 91) sorted by relevance

1234

/haiku/src/system/libroot/posix/unistd/
H A Dfork.c46 fork_hook *hook = (fork_hook *)malloc(sizeof(struct fork_hook)); in add_fork_hook() local
47 if (hook == NULL) in add_fork_hook()
50 hook->function = function; in add_fork_hook()
57 *_hooks = hook; in add_fork_hook()
58 *_lastHook = hook; in add_fork_hook()
73 (*_lastHook)->next = hook; in add_fork_hook()
74 *_lastHook = hook; in add_fork_hook()
77 hook->next = NULL; in add_fork_hook()
80 hook->next = *_hooks; in add_fork_hook()
81 *_hooks = hook; in add_fork_hook()
[all …]
/haiku/src/libs/compat/freebsd_network/
H A Dsubr_autoconf.cpp16 config_intrhook_establish(struct intr_config_hook *hook) in config_intrhook_establish() argument
23 (*hook->ich_func)(hook->ich_arg); in config_intrhook_establish()
29 config_intrhook_disestablish(struct intr_config_hook *hook) in config_intrhook_disestablish() argument
/haiku/headers/private/kernel/
H A Dlisteners.h42 NotifySchedulerListeners(void (SchedulerListener::*hook)(Parameter1), in NotifySchedulerListeners()
48 (listener->*hook)(parameter1); in NotifySchedulerListeners()
56 void (SchedulerListener::*hook)(Parameter1, Parameter2), in NotifySchedulerListeners()
62 (listener->*hook)(parameter1, parameter2); in NotifySchedulerListeners()
88 NotifyWaitObjectListeners(void (WaitObjectListener::*hook)(Parameter1), in NotifyWaitObjectListeners()
96 (listener->*hook)(parameter1); in NotifyWaitObjectListeners()
104 void (WaitObjectListener::*hook)(Parameter1, Parameter2), in NotifyWaitObjectListeners()
112 (listener->*hook)(parameter1, parameter2); in NotifyWaitObjectListeners()
H A Dgeneric_syscall.h29 status_t register_generic_syscall(const char *subsystem, syscall_hook hook,
H A Dteam.h55 status_t start_watching_team(team_id team, void (*hook)(team_id, void *),
57 status_t stop_watching_team(team_id team, void (*hook)(team_id, void *),
/haiku/src/system/libroot/posix/stdlib/
H A Dexit.cpp38 void (*hook)(void*); member
113 addr_t address = (addr_t)info->hook; in operator ()()
162 info->hook(info->data); in call_exit_hooks()
192 __cxa_atexit(void (*hook)(void*), void* data, void* dsoHandle) in __cxa_atexit()
194 if (hook == NULL) in __cxa_atexit()
226 info->hook = hook; in __cxa_atexit()
256 info->hook(info->data); in __cxa_finalize()
/haiku/src/system/kernel/
H A Dtimer.cpp179 event->flags, event->user_data, event->hook); in dump_timers()
187 (addr_t)event->hook, NULL, &symbol, &imageName, &exactMatch); in dump_timers()
265 TRACE(("timer_interrupt: calling hook %p for event %p\n", event->hook, in timer_interrupt()
271 if (event->hook) in timer_interrupt()
272 rc = event->hook(event); in timer_interrupt()
313 add_timer(timer* event, timer_hook hook, bigtime_t period, int32 flags) in add_timer() argument
317 if (event == NULL || hook == NULL || period < 0) in add_timer()
331 event->hook = hook; in add_timer()
H A Dsyscalls.cpp65 syscall_hook hook; member
161 = syscall->hook(subsystem, function, buffer, bufferSize); in _user_generic_syscall()
242 register_generic_syscall(const char* subsystem, syscall_hook hook, in register_generic_syscall() argument
245 if (hook == NULL) in register_generic_syscall()
265 syscall->hook = hook; in register_generic_syscall()
/haiku/headers/os/drivers/
H A DKernelExport.h95 timer_hook hook; member
175 extern status_t add_timer(timer *t, timer_hook hook, bigtime_t period,
220 debugger_command_hook hook, const char *help);
222 debugger_command_hook hook);
227 extern status_t register_kernel_daemon(daemon_hook hook, void *arg,
229 extern status_t unregister_kernel_daemon(daemon_hook hook, void *arg);
H A Dfs_cache.h39 transaction_notification_hook hook, void *data);
42 transaction_notification_hook hook, void *data);
46 int32 events, transaction_notification_hook hook,
49 transaction_notification_hook hook, void *data);
/haiku/headers/private/fs_shell/
H A Dfssh_kernel_export.h44 fssh_debugger_command_hook hook, const char *help);
46 fssh_debugger_command_hook hook);
H A Dfssh_fs_cache.h38 fssh_transaction_notification_hook hook,
42 int32_t id, fssh_transaction_notification_hook hook,
50 fssh_transaction_notification_hook hook,
53 int32_t id, fssh_transaction_notification_hook hook,
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dkernel.h79 int config_intrhook_establish(struct intr_config_hook *hook);
80 void config_intrhook_disestablish(struct intr_config_hook *hook);
/haiku/src/tools/fs_shell/
H A Dkernel_export.cpp100 fssh_add_debugger_command(const char *name, fssh_debugger_command_hook hook, in fssh_add_debugger_command() argument
108 fssh_remove_debugger_command(char *name, fssh_debugger_command_hook hook) in fssh_remove_debugger_command() argument
/haiku/headers/os/game/
H A DStreamingGameSound.h30 typedef void (*hook)(void* cookie, void* buffer, size_t byteCount, typedef
33 virtual status_t SetStreamHook(hook h, void* cookie);
84 hook fStreamHook;
/haiku/docs/user/drivers/
H A Dfs_modules.dox14 has to be provided. As for any other module the \c std_ops() hook is invoked
87 A FS module has to (or can) provide quite a lot of hook functions. There are
93 hook functions: <tt>open*()</tt>, <tt>close*()</tt>, and
94 <tt>free*_cookie()</tt>. The <tt>open*()</tt> hook is passed all that is
102 hook is invoked to signal that the cookie is to be closed. At this point
105 the cookie stops being in use the <tt>free*_cookie()</tt> hook is called;
111 iteration through the contained objects. The <tt>read_*()</tt> hook reads
113 <tt>rewind_*()</tt> hook resets the iteration state to the first entry.
117 <tt>read*_stat()</tt> hook and must be written into a <tt>struct stat</tt>
132 hook to let it create the respective node handle (unless the FS requests the
[all …]
/haiku/src/add-ons/kernel/network/stack/
H A Dutility.cpp349 timer->hook(timer, timer->data); in timer_thread()
386 init_timer(net_timer* timer, net_timer_func hook, void* data) in init_timer() argument
388 timer->hook = hook; in init_timer()
408 TRACE("set_timer %p, hook %p, data %p\n", timer, timer->hook, timer->data); in set_timer()
435 TRACE("cancel_timer %p, hook %p, data %p\n", timer, timer->hook, in cancel_timer()
500 kprintf("%p %p %p %" B_PRId64 "\n", timer, timer->hook, timer->data, in dump_timer()
/haiku/src/system/libnetwork/netresolv/resolv/
H A Dres_data.c234 res_send_setqhook(res_send_qhook hook) { in res_send_setqhook() argument
235 _nres.qhook = hook; in res_send_setqhook()
239 res_send_setrhook(res_send_rhook hook) { in res_send_setrhook() argument
240 _nres.rhook = hook; in res_send_setrhook()
/haiku/docs/user/midi2/
H A DMidiConsumer.dox72 events. Whenever MIDI data arrives, the Data() hook passes the MIDI event on to
73 a more specific hook function: NoteOn(), NoteOff(), SystemExclusive(), and so
74 on. Calls to these hook functions are serialized -- they will never have to be
80 hook's default implementation if you override it. For complete control, you can
83 Most hook functions take a channel argument. Even though MIDI channels are
84 really numbered 1 through 16, the hook functions work with channels 0 through
145 \brief Requests that the Timeout() hook will be called at some point.
147 This method asks the consumer thread to call the Timeout() hook as soon as
149 Timeout() hook is only called once. Note: the term "timeout" may be a little
150 misleading; the hook will <I>always</I> be called, even if events are received
[all …]
/haiku/docs/user/interface/
H A DCardLayout.dox135 \brief Overridden hook method from BAbstractLayout.
143 \brief Overridden hook method from BAbstractLayout.
151 \brief Overridden hook method from BAbstractLayout.
159 \brief Overridden hook method from BAbstractLayout.
167 \brief Overridden hook method from BAbstractLayout.
175 \brief Overridden hook method from BAbstractLayout.
194 \brief Overridden hook method from BAbstractLayout.
/haiku/headers/private/graphics/common/
H A Dcreate_display_modes.h24 check_display_mode_hook hook, display_mode** _modes, uint32* _count);
/haiku/src/kits/tracker/
H A DNavMenu.cpp586 TrackingHookData* hook) in NewModelItem() argument
663 if (hook != NULL) { in NewModelItem()
664 menu->InitTrackingHook(hook->fTrackingHook, &(hook->fTarget), in NewModelItem()
665 hook->fDragMessage); in NewModelItem()
878 BNavMenu::InitTrackingHook(bool (*hook)(BMenu*, void*), in InitTrackingHook()
881 fTrackingHook.fTrackingHook = hook; in InitTrackingHook()
886 SetTrackingHookDeep(this, hook, &fTrackingHook); in InitTrackingHook()
/haiku/src/add-ons/accelerants/common/
H A Dcreate_display_modes.cpp101 void Filter(check_display_mode_hook hook);
366 ModeList::Filter(check_display_mode_hook hook) in Filter() argument
368 if (hook == NULL) in Filter()
372 if (!hook(&fModes[i])) in Filter()
489 check_display_mode_hook hook, display_mode** _modes, uint32* _count) in create_display_modes() argument
516 modes.Filter(hook); in create_display_modes()
/haiku/src/kits/game/
H A DWindowScreen.cpp459 graphics_card_hook hook = NULL; in CardHookAt() local
464 hook = (graphics_card_hook)draw_rect_8; in CardHookAt()
468 hook = (graphics_card_hook)draw_rect_32; in CardHookAt()
472 hook = (graphics_card_hook)blit; in CardHookAt()
476 hook = (graphics_card_hook)scaled_filtered_blit; in CardHookAt()
480 hook = (graphics_card_hook)card_sync; in CardHookAt()
484 hook = (graphics_card_hook)draw_rect_16; in CardHookAt()
490 return hook; in CardHookAt()
H A DStreamingGameSound.cpp72 BStreamingGameSound::SetStreamHook(void (*hook)(void* inCookie, void* inBuffer, in SetStreamHook()
75 fStreamHook = hook; in SetStreamHook()

1234