#include <linux/export.h>
#include <linux/cpumask.h>
#include <linux/err.h>
#include <linux/cpu.h>
#include <linux/padata.h>
#include <linux/mutex.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/rcupdate.h>
Go to the source code of this file.
|
int | padata_do_parallel (struct padata_instance *pinst, struct padata_priv *padata, int cb_cpu) |
|
| EXPORT_SYMBOL (padata_do_parallel) |
|
void | padata_do_serial (struct padata_priv *padata) |
|
| EXPORT_SYMBOL (padata_do_serial) |
|
int | padata_register_cpumask_notifier (struct padata_instance *pinst, struct notifier_block *nblock) |
|
| EXPORT_SYMBOL (padata_register_cpumask_notifier) |
|
int | padata_unregister_cpumask_notifier (struct padata_instance *pinst, struct notifier_block *nblock) |
|
| EXPORT_SYMBOL (padata_unregister_cpumask_notifier) |
|
int | padata_set_cpumasks (struct padata_instance *pinst, cpumask_var_t pcpumask, cpumask_var_t cbcpumask) |
|
| EXPORT_SYMBOL (padata_set_cpumasks) |
|
int | padata_set_cpumask (struct padata_instance *pinst, int cpumask_type, cpumask_var_t cpumask) |
|
| EXPORT_SYMBOL (padata_set_cpumask) |
|
int | padata_add_cpu (struct padata_instance *pinst, int cpu, int mask) |
|
| EXPORT_SYMBOL (padata_add_cpu) |
|
int | padata_remove_cpu (struct padata_instance *pinst, int cpu, int mask) |
|
| EXPORT_SYMBOL (padata_remove_cpu) |
|
int | padata_start (struct padata_instance *pinst) |
|
| EXPORT_SYMBOL (padata_start) |
|
void | padata_stop (struct padata_instance *pinst) |
|
| EXPORT_SYMBOL (padata_stop) |
|
| PADATA_ATTR_RW (serial_cpumask, show_cpumask, store_cpumask) |
|
| PADATA_ATTR_RW (parallel_cpumask, show_cpumask, store_cpumask) |
|
struct padata_instance * | padata_alloc_possible (struct workqueue_struct *wq) |
|
| EXPORT_SYMBOL (padata_alloc_possible) |
|
struct padata_instance * | padata_alloc (struct workqueue_struct *wq, const struct cpumask *pcpumask, const struct cpumask *cbcpumask) |
|
| EXPORT_SYMBOL (padata_alloc) |
|
void | padata_free (struct padata_instance *pinst) |
|
| EXPORT_SYMBOL (padata_free) |
|
#define PADATA_ATTR_RO |
( |
|
_name, |
|
|
|
_show_name |
|
) |
| |
Value:
__ATTR(_name, 0400, _show_name,
NULL)
Definition at line 975 of file padata.c.
#define PADATA_ATTR_RW |
( |
|
_name, |
|
|
|
_show_name, |
|
|
|
_store_name |
|
) |
| |
Value:
__ATTR(_name, 0644, _show_name, _store_name)
Definition at line 972 of file padata.c.
padata_add_cpu - add a cpu to one or both(parallel and serial) padata cpumasks.
: padata instance : cpu to add : bitmask of flags specifying to which cpumask shuld be added. The may be any combination of the following flags: PADATA_CPU_SERIAL - serial cpumask PADATA_CPU_PARALLEL - parallel cpumask
Definition at line 711 of file padata.c.
padata_alloc - allocate and initialize a padata instance and specify cpumasks for serial and parallel workers.
: workqueue to use for the allocated padata instance : cpumask that will be used for padata parallelization : cpumask that will be used for padata serialization
Definition at line 1055 of file padata.c.
padata_alloc_possible - Allocate and initialize padata instance. Use the cpu_possible_mask for serial and parallel workers.
: workqueue to use for the allocated padata instance
Definition at line 1041 of file padata.c.
PADATA_ATTR_RW |
( |
serial_cpumask |
, |
|
|
show_cpumask |
, |
|
|
store_cpumask |
|
|
) |
| |
PADATA_ATTR_RW |
( |
parallel_cpumask |
, |
|
|
show_cpumask |
, |
|
|
store_cpumask |
|
|
) |
| |
padata_do_parallel - padata parallelization function
: padata instance : object to be parallelized : cpu the serialization callback function will run on, must be in the serial cpumask of padata(i.e. cpumask.cbcpu).
The parallelization callback function will run with BHs off. Note: Every object which is parallelized by padata_do_parallel must be seen by padata_do_serial.
Definition at line 107 of file padata.c.
padata_do_serial - padata serialization function
: object to be serialized.
padata_do_serial must be called for every parallelized object. The serialization callback function will run with BHs off.
Definition at line 330 of file padata.c.
padata_free - free a padata instance
: padata instance to free
Definition at line 1120 of file padata.c.
padata_register_cpumask_notifier - Registers a notifier that will be called if either pcpu or cbcpu or both cpumasks change.
: A poineter to padata instance : A pointer to notifier block.
Definition at line 540 of file padata.c.
padata_remove_cpu - remove a cpu from the one or both(serial and parallel) padata cpumasks.
: padata instance : cpu to remove : bitmask specifying from which cpumask should be removed The may be any combination of the following flags: PADATA_CPU_SERIAL - serial cpumask PADATA_CPU_PARALLEL - parallel cpumask
Definition at line 770 of file padata.c.
padata_set_cpumask: Sets specified by cpumask to the value equivalent to .
: padata instance : PADATA_CPU_SERIAL or PADATA_CPU_PARALLEL corresponding to parallel and serial cpumasks respectively. : the cpumask to use
Definition at line 647 of file padata.c.
padata_set_cpumasks - Set both parallel and serial cpumasks. The first one is used by parallel workers and the second one by the wokers doing serialization.
: padata instance : the cpumask to use for parallel workers : the cpumsak to use for serial workers
Definition at line 620 of file padata.c.
padata_start - start the parallel processing
: padata instance to start
Definition at line 799 of file padata.c.
padata_stop - stop the parallel processing
: padata instance to stop
Definition at line 821 of file padata.c.
padata_unregister_cpumask_notifier - Unregisters cpumask notifier registered earlier using padata_register_cpumask_notifier
: A pointer to data instance. : A pointer to notifier block.
Definition at line 555 of file padata.c.