summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/usb_controller.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2015-08-17 12:51:46 +0000
committered <ed@FreeBSD.org>2015-08-17 12:51:46 +0000
commit77458f0d7cb617f5b07d6e249e961647e6ba84e1 (patch)
tree7836b9cb3f95fd1b60c6d1a2643dd55032438521 /sys/dev/usb/controller/usb_controller.c
parent88549d1bce98dce7ec4a3a5342c9129f0380ca6b (diff)
downloadFreeBSD-src-77458f0d7cb617f5b07d6e249e961647e6ba84e1.zip
FreeBSD-src-77458f0d7cb617f5b07d6e249e961647e6ba84e1.tar.gz
MFC r285715:
Add an API for easily creating userspace threads in kernelspace. This change refactors the existing create_thread() function to be more generic. It replaces almost all of its arguments by a callback that can be used to extract the thread ID and copy it out to the right place, but also to perform additional initialization steps, such as setting the trapframe. This also makes the difference between thr_new() and thr_create() more clear in my opinion. This function is going to be used by the CloudABI compatibility layer. It looks like the OpenSolaris compatibility framework already provides a function called thread_create(). Rename this function to do_thread_create() and use a macro to deal with the namespacing conflict. A similar approach is already used for thread_exit().
Diffstat (limited to 'sys/dev/usb/controller/usb_controller.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud