OpenVAS Scanner  22.7.9
pluginlaunch.h
Go to the documentation of this file.
1 /* SPDX-FileCopyrightText: 2023 Greenbone AG
2  * SPDX-FileCopyrightText: 2006 Software in the Public Interest, Inc.
3  * SPDX-FileCopyrightText: 1998-2006 Tenable Network Security, Inc.
4  *
5  * SPDX-License-Identifier: GPL-2.0-only
6  */
7 
13 #ifndef OPENVAS_PLUGINLAUNCH_H
14 #define OPENVAS_PLUGINLAUNCH_H
15 
16 #include "pluginload.h" /* for struct pl_class_t */
17 #include "pluginscheduler.h" /* for struct plugins_scheduler_t */
18 
22 #define ERR_CANT_FORK -2
23 
26 #define ERR_NO_FREE_SLOT -99
27 
28 void
29 pluginlaunch_init (const char *);
30 void pluginlaunch_wait (kb_t, kb_t);
31 void pluginlaunch_wait_for_free_process (kb_t, kb_t);
32 
33 void
34 pluginlaunch_stop (void);
35 
36 int
37 plugin_launch (struct scan_globals *, struct scheduler_plugin *,
38  struct in6_addr *, GSList *, kb_t, kb_t, nvti_t *, int *);
39 
40 void
42 void
44 
45 int
47 #endif
plugin_launch
int plugin_launch(struct scan_globals *, struct scheduler_plugin *, struct in6_addr *, GSList *, kb_t, kb_t, nvti_t *, int *)
Start a plugin.
Definition: pluginlaunch.c:458
pluginlaunch_wait
void pluginlaunch_wait(kb_t, kb_t)
Waits and 'pushes' processes until num_running_processes is 0.
Definition: pluginlaunch.c:495
scheduler_plugin
Definition: pluginscheduler.h:28
pluginlaunch_wait_for_free_process
void pluginlaunch_wait_for_free_process(kb_t, kb_t)
Waits and 'pushes' processes until the number of running processes has changed.
Definition: pluginlaunch.c:528
pluginload.h
pluginload.c header.
wait_for_children
int wait_for_children(void)
scan_globals
Definition: scanneraux.h:19
pluginlaunch_enable_parallel_checks
void pluginlaunch_enable_parallel_checks(void)
Definition: pluginlaunch.c:346
pluginscheduler.h
header for pluginscheduler.c
pluginlaunch_init
void pluginlaunch_init(const char *)
Definition: pluginlaunch.c:315
pluginlaunch_disable_parallel_checks
void pluginlaunch_disable_parallel_checks(void)
Definition: pluginlaunch.c:340
pluginlaunch_stop
void pluginlaunch_stop(void)
Definition: pluginlaunch.c:352