opnsense-src/share
Vladimir Kondratyev 2c9bb9c618 LinuxKPI: Implement kthread_worker related functions
Kthread worker is a single thread workqueue which can be used in cases
where specific kthread association is necessary, for example, when it
should have RT priority or be assigned to certain cgroup.

This change implements Linux v4.9 interface which mostly hides kthread
internals from users thus allowing to use ordinary taskqueue(9) KPI.
As kthread worker prohibits enqueueing of already pending or canceling
tasks some minimal changes to taskqueue(9) were done.
taskqueue_enqueue_flags() was added to taskqueue KPI which accepts extra
flags parameter. It contains one or more of the following flags:

TASKQUEUE_FAIL_IF_PENDING - taskqueue_enqueue_flags() fails if the task
    is already scheduled to execution. EEXIST is returned and the
    ta_pending counter value remains unchanged.
TASKQUEUE_FAIL_IF_CANCELING - taskqueue_enqueue_flags() fails if the
    task is in the canceling state and ECANCELED is returned.

Required by:	drm-kmod 5.10

MFC after:	1 week
Reviewed by:	hselasky, Pau Amma (docs)
Differential Revision:	https://reviews.freebsd.org/D35051

(cherry picked from commit b6f87b78b5)
2022-06-02 00:50:14 +03:00
..
colldef Add collation version support to querylocale(3). 2020-11-08 02:50:34 +00:00
ctypedef Fix CTYPE for ja_JP.eucJP and ja_JP.SJIS. 2020-06-29 03:23:13 +00:00
dict Add a number of five letter words to the dictionary 2022-05-03 14:20:44 -04:00
doc usd: Fix two typos 2022-04-09 08:09:53 +02:00
dtrace dtrace: fix ipfw_rule_info_t translator 2021-09-10 13:35:35 +03:00
examples ipflter: ANSIfy userland function declarations 2022-02-07 05:51:15 -08:00
i18n Remove mkcsmapper_static and mkesdb_static from build-tools 2021-08-05 10:00:56 +01:00
keys pkgbase: Add a FreeBSD-pkg-bootstrap package 2022-01-05 18:23:53 +01:00
man LinuxKPI: Implement kthread_worker related functions 2022-06-02 00:50:14 +03:00
misc bsd-family-tree: macOS 11 and macOS 12 2022-03-31 22:27:36 -06:00
mk src.libnames: Replace redundant += with = 2022-05-25 20:42:53 -07:00
monetdef Add ga_IE.UTF-8 locale. 2018-11-26 19:39:49 +00:00
msgdef Add ga_IE.UTF-8 locale. 2018-11-26 19:39:49 +00:00
numericdef Add ga_IE.UTF-8 locale. 2018-11-26 19:39:49 +00:00
security
sendmail share: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:26:40 +00:00
skel Make sh(1) support \u in PS1. This removes one fork/exec on interactive 2019-01-24 11:59:46 +00:00
snmp pkgbase: Put the mibs and defs in the bnsmp package 2021-06-30 09:24:33 +02:00
syscons pkgbase: Create a syscons-data package 2022-01-05 18:23:50 +01:00
tabset
termcap Update the screen termcap entries 2020-05-07 12:43:28 +00:00
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
timedef Finsh readding Big5 in r317204, which was reverting r315568. This commit 2019-06-20 07:17:16 +00:00
vt keymap: Add extra Alt Gr mapping for Brazillian Portuguese ABNT2 keyboards 2022-02-25 21:21:50 -03:00
zoneinfo pkgbase: Put zoneinfo file in their own package 2021-01-04 16:18:36 +01:00
Makefile Convert traditional ${MK_TESTS} conditional idiom for including test 2017-08-02 08:35:51 +00:00
Makefile.inc