Function report |
Source Code:fs\io-wq.c |
Create Date:2022-07-28 20:22:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:create_io_worker
Proto:static bool create_io_worker(struct io_wq *wq, struct io_wqe *wqe, int index)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct io_wq * | wq | |
struct io_wqe * | wqe | |
int | index |
613 | If Not worker Then Return false |
617 | pprev = NULL |
619 | Process spin lock initialization( & lock) |
628 | spin_lock_irq( & lock) |
631 | flags |= IO_WORKER_F_FREE |
632 | If index == IO_WQ_ACCT_BOUND Then flags |= IO_WORKER_F_BOUND |
634 | If Not nr_workers && flags & IO_WORKER_F_BOUND Then flags |= IO_WORKER_F_FIXED |
636 | nr_workers++ |
637 | spin_unlock_irq( & lock) |
639 | If index == IO_WQ_ACCT_UNBOUND Then atomic_inc( & How many processes does this user have? ) |
643 | Return true |
Name | Describe |
---|---|
io_wq_manager | Manager thread. Tasked with creating new workers, if we need them. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |