Home
last modified time | relevance | path

Searched full:function (Results 1 – 25 of 1016) sorted by relevance

12345678910>>...41

/qemu/include/qemu/
H A Dmodule.h28 #define module_init(function, type) \ argument
29 static void __attribute__((constructor)) do_qemu_init_ ## function(void) \
31 register_dso_module_init(function, type); \
35 #define module_init(function, type) \ argument
36 static void __attribute__((constructor)) do_qemu_init_ ## function(void) \
38 register_module_init(function, type); \
54 #define block_init(function) module_init(function, MODULE_INIT_BLOCK) argument
55 #define opts_init(function) module_init(function, MODULE_INIT_OPTS) argument
56 #define type_init(function) module_init(function, MODULE_INIT_QOM) argument
57 #define trace_init(function) module_init(function, MODULE_INIT_TRACE) argument
[all …]
H A Dyank.h21 * function is registered for this instance.
23 * This function is thread-safe.
35 * This unregisters a instance. Must be called only after every yank function
38 * This function is thread-safe.
45 * yank_register_function: Register a yank function
47 * This registers a yank function. All limitations of qmp oob commands apply
48 * to the yank function as well. See docs/devel/qapi-code-gen.rst under
51 * This function is thread-safe.
54 * @func: The yank function.
55 * @opaque: Will be passed to the yank function.
[all …]
H A Dmain-loop.h131 * @func: The function that does the polling, and returns 1 to force
140 * This function removes a callback that was registered with
143 * @func: The function that was passed to qemu_add_polling_cb.
156 * This function registers a #HANDLE with QEMU, so that it will be included
160 * If the same HANDLE is added twice, this function returns -1.
163 * @func: A function to be called when @handle is in a signaled state.
171 * This function removes a callback that was registered with
174 * @func: The function that was passed to qemu_add_wait_object.
187 * This function reports how many bytes #IOReadHandler is prepared to accept.
189 * function returns 0 then #IOReadHandler is not invoked.
[all …]
H A Dqemu-plugin.h111 * is first loaded. Calling qemu_plugin_uninstall() from this function
162 * Do NOT assume that the plugin has been uninstalled once this function
166 * Note: Calling this function from qemu_plugin_install() is a bug.
178 * Do NOT assume that the plugin has been reset once this function returns.
188 * @cb: callback function
190 * The @cb function is called every time a vCPU is initialized.
201 * @cb: callback function
203 * The @cb function is called every time a vCPU exits.
214 * @cb: callback function
216 * The @cb function is called every time a vCPU idles.
[all …]
H A Dmemalign.h18 * @alignment must be a power of 2, or the function will assert().
21 * The memory allocated through this function must be freed via
33 * The memory allocated through this function must be freed via
41 * This function must be used to free memory allocated via qemu_memalign()
42 * or qemu_try_memalign(). (Using the wrong free function will cause
/qemu/docs/devel/
H A Dcontrol-flow-integrity.rst15 function calls have not been altered by an attacker.
17 function calls performed through function pointers, always call a "compatible"
18 function. A compatible function is a function with the same signature of the
19 function pointer declared in the source code.
22 the signature of every function and every function pointer used in the code.
28 In case of a CFI violation (i.e. call to a non-compatible function) QEMU will
86 Disabling CFI for a specific function
89 If you are working on function that is performing a call using an
91 for such function by using the decorator ``QEMU_DISABLE_CFI`` at function
92 definition, and add an explanation on why the function is not compatible
[all …]
H A Dblock-coroutine-wrapper.rst9 needed function from it and wait for the coroutine to finish in a
10 BDRV_POLL_WHILE() loop. To run a coroutine we need a function with one
11 void* argument. So for each coroutine_fn function which needs a
13 parameters, define a separate function to unpack the parameters and
14 call the original function and finally define a new interface function
23 Assume we have defined the ``coroutine_fn`` function
H A Dreset.rst87 parameter. Still, it is a programming error to call a resettable function on a
97 These are simple wrappers around resettable_reset() function; they only cast the
169 The ``resettable_class_set_parent_phases()`` class function may be used to
231 only some of them by passing NULL instead of a function pointer to
245 Resettable interface provides the ``resettable_is_in_reset()`` function.
246 This function returns true if the object parameter is currently under reset.
250 phase. During *enter* and *hold* phase only, the function will return that the
254 This function may be used if the object behavior has to be adapted
261 one of the reset phases, the only cases when this function will return
296 to follow the bus hierarchy; for a bus, it calls the function on every child
[all …]
/qemu/hw/acpi/
H A Dtpm.c109 Aml *function, *arguments, *rev, *op, *op_arg, *op_flags, *uuid; in tpm_build_ppi_acpi() local
113 function = aml_arg(2); in tpm_build_ppi_acpi()
123 /* standard DSM query function */ in tpm_build_ppi_acpi()
124 ifctx2 = aml_if(aml_equal(function, zero)); in tpm_build_ppi_acpi()
137 * Arg 2 (Integer): Function Index = 1 in tpm_build_ppi_acpi()
141 ifctx2 = aml_if(aml_equal(function, one)); in tpm_build_ppi_acpi()
150 * Arg 2 (Integer): Function Index = 2 in tpm_build_ppi_acpi()
158 ifctx2 = aml_if(aml_equal(function, aml_int(2))); in tpm_build_ppi_acpi()
190 * Arg 2 (Integer): Function Index = 3 in tpm_build_ppi_acpi()
193 * Integer 1: Function Return code in tpm_build_ppi_acpi()
[all …]
/qemu/rust/qemu-api/src/
H A Dcallbacks.rs8 /// callbacks. These include both zero-capture closures and function pointers.
10 /// In Rust, calling a function through the `Fn` trait normally requires a
11 /// `self` parameter, even though for zero-sized functions (including function
13 /// function. This trait provides a `call` function that doesn't require `self`,
17 /// parameters and resolved at compile-time. A typical use is a function
19 /// `F::call` or passing it to another function via `func::<F>`.
28 /// // The compiler creates a new `rust_bh_cb` wrapper for each function
48 /// compiled to a separate function ("monomorphization"). If you wanted
52 /// `Args` is a tuple type whose types are the arguments of the function,
68 /// each function that is passed to it. Therefore the argument is not really
[all …]
/qemu/include/hw/s390x/
H A Ds390-pci-clp.h39 #define CLP_RC_FC_UNKNOWN 0x0100 /* Function code not recognized */
49 /* PCI function handle list entry */
73 /* Number of function handles fitting in response block */
108 /* Query PCI function request */
113 uint32_t fh; /* function handle */
118 /* Query PCI function response */
127 uint32_t fid; /* pci function id */
142 /* Query PCI function group request */
153 /* Query PCI function group response */
175 /* Set PCI function request */
[all …]
H A Ds390-pci-inst.h46 /* Modify PCI Function Controls */
56 /* Store PCI Function Controls status codes */
64 /* FIB function controls */
70 /* FIB function controls */
76 /* Function Information Block */
80 uint8_t fc; /* function controls */
96 uint64_t fmb_addr; /* Function measurement address and key */
/qemu/linux-headers/linux/
H A Dvfio_zdev.h18 * VFIO_DEVICE_INFO_CAP_ZPCI_BASE - Base PCI Function information
21 * associated PCI function.
28 __u16 vfn; /* Virtual function number */
30 __u8 pft; /* PCI Function Type */
31 __u8 gid; /* PCI function group ID */
33 __u32 fh; /* PCI function handle */
38 * VFIO_DEVICE_INFO_CAP_ZPCI_GROUP - Base PCI Function Group information
73 * VFIO_DEVICE_INFO_CAP_ZPCI_PFIP - PCI Function Path
75 * This capability provides the PCI function path string, which is an identifier
/qemu/tests/qtest/libqos/
H A Dqgraph.h52 * Edge options to be passed to the contains/consumes \*_args function.
88 * data arg for its test function.
90 * Otherwise pass it to the test function.
93 * and modify the argument to the test function.
122 * @start_hw: This function is executed after all the path objects
127 * This function is called after the test has been executed, and
191 * @function: Machine constructor
193 * This node will be of type QNODE_MACHINE and have @function
196 void qos_node_create_machine(const char *name, QOSCreateMachineFunc function);
203 * @function: Machine constructor
[all …]
/qemu/target/riscv/
H A Dinsn16.decode21 %rs1_3 7:3 !function=ex_rvc_register
22 %rs2_3 2:3 !function=ex_rvc_register
24 %r1s 7:3 !function=ex_sreg_register
25 %r2s 2:3 !function=ex_sreg_register
29 %nzuimm_ciw 7:4 11:2 5:1 6:1 !function=ex_shift_2
30 %uimm_cl_q 10:1 5:2 11:2 !function=ex_shift_4
31 %uimm_cl_d 5:2 10:3 !function=ex_shift_3
32 %uimm_cl_w 5:1 10:3 6:1 !function=ex_shift_2
33 %imm_cb 12:s1 5:2 2:1 10:2 3:2 !function=ex_shift_1
34 %imm_cj 12:s1 8:1 9:2 6:1 7:1 2:1 11:1 3:3 !function=ex_shift_1
[all …]
H A Dsbi_ecall_interface.h43 /* SBI function IDs for BASE extension */
52 /* SBI function IDs for TIME extension */
55 /* SBI function IDs for IPI extension */
58 /* SBI function IDs for RFENCE extension */
67 /* SBI function IDs for HSM extension */
72 /* SBI function IDs for DBCN extension */
/qemu/include/hw/
H A Dptimer.h19 * When it reaches zero it will trigger a callback function, and
102 * @callback: function to call on ptimer expiry
122 * The callback function is always called from within a transaction
124 * ptimer_transaction_begin() function itself. If the callback changes
143 * This function must be called before making any calls to functions
147 * It is an error to call this function for a BH-based ptimer;
155 * This function must be called after calls to functions which modify
171 * This function will assert if it is called outside a
192 * This function will assert if it is called outside a
205 * as setting the frequency then this function is more appropriate,
[all …]
H A Dqdev-core.h59 * To hide a device, a DeviceListener function hide_device() needs to
64 * visible. When the handler function decides the device shall be
103 * @realize: Callback function invoked when the #DeviceState:realized
105 * @unrealize: Callback function invoked when the #DeviceState:realized
107 * @sync_config: Callback function invoked when QMP command device-sync-config
510 * do not use this function, because that family of functions arrange
523 * This function will "unrealize" a device, which is the first phase
617 * function will assert() if passed an invalid index.
619 * This function is intended to be used by board code or SoC "container"
621 * will be passed to qdev_connect_gpio_out() or a similar function to
[all …]
/qemu/include/qom/
H A Dobject.h60 * Returns: If @path is the path that led to @obj, the function
108 * The function should remove any backlinks from children objects to @obj.
444 * @instance_init: This function is called to initialize an object. The parent
447 * @instance_post_init: This function is called to finish initialization of
450 * @instance_finalize: This function is called during object destruction. This
451 * is called before the parent @instance_finalize function has been called.
453 * function.
461 * @class_init: This function is called after all parent class initialization
463 * This is also the function to use to override virtual methods from a parent
465 * @class_base_init: This function is called for all base classes after all
[all …]
/qemu/include/qapi/
H A Derror.h28 * - Separation of concerns: the function is responsible for detecting
31 * function should not examine it.
33 * - The function may pass @errp to functions it calls to pass on
37 * - On success, the function should not touch *errp. On failure, it
80 * Call a function ignoring errors:
87 * Call a function aborting on errors:
94 * Call a function treating errors as fatal:
119 * Call a function, receive an error from it, and pass it to the caller
120 * - when the function returns a value that indicates failure, say
125 * - when it does not, say because it is a void function:
[all …]
/qemu/include/io/
H A Dchannel-socket.h102 * @callback: the function to invoke on completion
104 * @destroy: the function to free @opaque
110 * execution control immediately. The function @callback
113 * as this function returns without waiting for completion.
145 * @callback: the function to invoke on completion
147 * @destroy: the function to free @opaque
153 * execution control immediately. The function @callback
156 * as this function returns without waiting for completion.
190 * @callback: the function to invoke on completion
192 * @destroy: the function to free @opaque
[all …]
/qemu/ui/
H A Dcurses_keys.h228 [KEY_F(1)] = 59, /* Function Key 1 */
229 [KEY_F(2)] = 60, /* Function Key 2 */
230 [KEY_F(3)] = 61, /* Function Key 3 */
231 [KEY_F(4)] = 62, /* Function Key 4 */
232 [KEY_F(5)] = 63, /* Function Key 5 */
233 [KEY_F(6)] = 64, /* Function Key 6 */
234 [KEY_F(7)] = 65, /* Function Key 7 */
235 [KEY_F(8)] = 66, /* Function Key 8 */
236 [KEY_F(9)] = 67, /* Function Key 9 */
237 [KEY_F(10)] = 68, /* Function Key 10 */
[all …]
/qemu/docs/devel/migration/
H A Dvfio.rst48 * A ``save_setup`` function that sets up migration on the source.
50 * A ``load_setup`` function that sets the VFIO device on the destination in
53 * A ``state_pending_estimate`` function that reports an estimate of the
57 * A ``state_pending_exact`` function that reads pending_bytes from the vendor
61 * An ``is_active_iterate`` function that indicates ``save_live_iterate`` is
64 * A ``save_live_iterate`` function that reads the VFIO device's data from the
67 * A ``switchover_ack_needed`` function that checks if the VFIO device uses
70 * A ``switchover_start`` function that in the multifd mode starts a thread that
72 In the non-multifd mode this function is a NOP.
74 * A ``save_state`` function to save the device config space if it is present
[all …]
/qemu/include/chardev/
H A Dchar-fe.h54 * Note: avoid this function as the driver should never be accessed directly,
176 * function is thread-safe. It does nothing without associated
202 * @func: the function to call when the condition happens
226 * Write data to a character backend from the front end. This function
227 * will send data from the front end to the back end. This function
240 * Write data to a character backend from the front end. This function will
242 * this function will block if the back end cannot consume all of the data
243 * attempted to be written. This function is thread-safe.
267 * Issue a device specific ioctl to a backend. This function is thread-safe.
283 * this function will return -1 until a client sends a new file
[all …]
/qemu/hw/misc/
H A Dmps2-scc.c46 FIELD(CFGCTRL, FUNCTION, 20, 6)
108 /* Handle a write via the SYS_CFG channel to the specified function/device.
111 static bool scc_cfg_write(MPS2SCC *s, unsigned function, in scc_cfg_write() argument
114 trace_mps2_scc_cfg_write(function, device, value); in scc_cfg_write()
116 if (function != 1 || device >= s->num_oscclk) { in scc_cfg_write()
118 "MPS2 SCC config write: bad function %d device %d\n", in scc_cfg_write()
119 function, device); in scc_cfg_write()
127 /* Handle a read via the SYS_CFG channel to the specified function/device.
131 static bool scc_cfg_read(MPS2SCC *s, unsigned function, in scc_cfg_read() argument
134 if (function != 1 || device >= s->num_oscclk) { in scc_cfg_read()
[all …]

12345678910>>...41