9 Kernel routines
8,468 pages in section 9.
ka
kc
ke
-
kern_kernel environment variable functionsgetenv -
kern_reboot, halt, or power off the systemreboot -
kern_kernel environment variable functionssetenv -
kern_A kernel testing frameworktestfrwk -
kern_kernel environment variable functionsunsetenv -
kern_functions for yielding execution of the current threadyield -
kernacccheck memory regions for accessibility -
kernel-api -
kernel-hacking -
kernel-locking -
kernel_halt the systemhalt -
kernel_functions provided as part of the kernel mount interfacemount -
KERNEL_bring down system on fatal errorPANICKED -
kernel_power_off the systempower_ off -
kernel_Receive a message from a socket (kernel space)recvmsg -
kernel_reboot the systemrestart -
kernel_convert kernel ipc permissions to userto_ ipc64_ perm -
kernel_functions provided as part of the kernel mount interfacevmount
kf
-
KFAIL_fail pointsPOINT_ CODE -
KFAIL_fail pointsPOINT_ ERROR -
KFAIL_fail pointsPOINT_ GOTO -
KFAIL_fail pointsPOINT_ RETURN -
KFAIL_fail pointsPOINT_ RETURN_ VOID -
kfifo_dynamically allocates a new fifo bufferalloc -
kfifo_returns the number of unused elements in the fifoavail -
kfifo_finish a DMA IN operationdma_ in_ finish -
kfifo_setup a scatterlist for DMA inputdma_ in_ prepare -
kfifo_finish a DMA OUT operationdma_ out_ finish -
kfifo_setup a scatterlist for DMA outputdma_ out_ prepare -
kfifo_returns the size of the element managed by the fifoesize -
kfifo_frees the fifofree -
kfifo_puts some data from user space into the fifofrom_ user -
kfifo_get data from the fifoget -
kfifo_put data into the fifoin -
kfifo_put data into the fifo using a spinlock for lockingin_ spinlocked -
kfifo_initialize a fifo using a preallocated bufferinit -
kfifo_Check if the fifo is initializedinitialized -
kfifo_returns true if the fifo is emptyis_ empty -
kfifo_returns true if the fifo is fullis_ full -
kfifo_returns the number of used elements in the fifolen -
kfifo_get data from the fifoout -
kfifo_gets some data from the fifoout_ peek -
kfifo_get data from the fifo using a spinlock for lockingout_ spinlocked -
kfifo_get data from the fifo without removingpeek -
kfifo_gets the size of the next fifo recordpeek_ len -
kfifo_put data into the fifoput -
kfifo_returns the size of the record length fieldrecsize -
kfifo_removes the entire fifo contentreset -
kfifo_skip fifo contentreset_ out -
kfifo_returns the size of the fifo in elementssize -
kfifo_skip output dataskip -
kfifo_copies data from the fifo into user spaceto_ user -
kfreefree previously allocated memory -
kfree_conditionally free memoryconst -
kfree_free an sk_buffskb
kg
-
kgdb_Perform any architecture specific uninitalization.arch_ exit -
kgdb_Handle architecture specific GDB packets.arch_ handle_ exception -
kgdb_Perform any architecture specific initalization.arch_ init -
kgdb_Perform any architecture specific initalization.arch_ late -
kgdb_Generic call back to the program counterarch_ set_ pc -
kgdb_compiled in breakpointbreakpoint -
kgdb_(optional) Disable hardware debugging hookdisable_ hw_ debug -
kgdb_(optional) Save error vector/code numbers.post_ primary_ code -
kgdb_Get other CPUs into a holding patternroundup_ cpus -
kgdb_(optional) exit kgdb_handle_exception earlyskipexception
kh
-
khelpKernel Helper Framework -
khelp_Kernel Helper Frameworkadd_ hhook -
KHELP_Kernel Helper FrameworkDECLARE_ MOD -
KHELP_Kernel Helper FrameworkDECLARE_ MOD_ UMA -
khelp_Kernel Helper Frameworkdestroy_ osd -
khelp_Kernel Helper Frameworkget_ id -
khelp_Kernel Helper Frameworkget_ osd -
khelp_Kernel Helper Frameworkinit_ osd -
khelp_Kernel Helper Frameworkremove_ hhook
ki
km
-
kmallocallocate memory -
kmalloc_allocate memory for an array.array -
kmalloc_allocate memory from a specific nodenode -
kmem_Allocate an objectcache_ alloc -
kmem_Allocate an object on the specified nodecache_ alloc_ node -
kmem_Create a cache.cache_ create -
kmem_delete a cachecache_ destroy -
kmem_Deallocate an objectcache_ free -
kmem_Shrink a cache.cache_ shrink -
kmem_Allocate an object. The memory is set to zero.cache_ zalloc -
kmemdupduplicate region of memory -
kmemdup_Create a NUL-terminated string from unterminated datanul -
KMSANKernel Memory SANitizer -
kmsanKernel Memory SANitizer -
kmsan_Kernel Memory SANitizercheck -
kmsan_Kernel Memory SANitizercheck_ bio -
kmsan_Kernel Memory SANitizercheck_ ccb -
kmsan_Kernel Memory SANitizercheck_ mbuf -
kmsan_Kernel Memory SANitizercheck_ uio -
kmsan_Kernel Memory SANitizermark -
kmsan_Kernel Memory SANitizeroirg -
kmsg_copy kmsg log linesdump_ get_ buffer -
kmsg_retrieve one kmsg log linedump_ get_ line -
kmsg_register a kernel log dumper.dump_ register -
kmsg_reset the interatordump_ rewind -
kmsg_unregister a kmsg dumper.dump_ unregister
kn
-
knlist_event delivery subsystemadd -
knlist_event delivery subsystemclear -
knlist_event delivery subsystemdelete -
knlist_event delivery subsystemdestroy -
knlist_event delivery subsystemempty -
knlist_event delivery subsysteminit -
knlist_event delivery subsysteminit_ mtx -
knlist_event delivery subsystemremove -
knob2floatConvert counts (probably from an encoder) to a float value -
knote_event delivery subsystemfdclose -
KNOTE_event delivery subsystemLOCKED -
KNOTE_event delivery subsystemUNLOCKED
ko
-
kobja kernel object system for FreeBSD -
kobj_a kernel object system for FreeBSDclass_ compile -
kobj_a kernel object system for FreeBSDclass_ compile_ static -
kobj_a kernel object system for FreeBSDclass_ free -
kobj_a kernel object system for FreeBSDcreate -
kobj_a kernel object system for FreeBSDdelete -
kobj_a kernel object system for FreeBSDinit -
kobj_a kernel object system for FreeBSDinit_ static -
kobject_the main kobject add functionadd -
kobject_create a struct kobject dynamically and register it with sysfscreate_ and_ add -
kobject_unlink kobject from hierarchy.del -
kobject_increment refcount for object.get -
kobject_generate and return the path associated with a given kobj and kset pair.get_ path -
kobject_initialize a kobject structureinit -
kobject_initialize a kobject structure and add it to the kobject hierarchyinit_ and_ add -
kobject_decrement refcount for object.put -
kobject_initialize and add an object.register -
kobject_change the name of an objectrename -
kobject_Set the name of a kobjectset_ name -
kobject_remove object from hierarchy and decrement refcount.unregister
kp
kq
kr
ks
-
kset_create a struct kset dynamically and add it to sysfscreate_ and_ add -
kset_initialize and add a kset.register -
kset_remove a kset.unregister -
ksizeget the actual amount of memory allocated for a given object -
ksoftirqdSoftirq daemon -
kstack_determine if an address range lies within the kernel stack for a threadcontains -
kstat_Get the statistics for an interruptirqs -
kstat_Get the statistics for an interrupt on a cpuirqs_ cpu -
kstat_Get the statistics for an interruptirqs_ usr -
kstrdupallocate space for and copy an existing string -
kstrdup_conditionally duplicate an existing const stringconst -
kstrndupallocate space for and copy an existing string -
kstrtoboolconvert common user inputs into boolean values -
kstrtointconvert a string to an int -
kstrtolconvert a string to a long -
kstrtollconvert a string to a long long -
kstrtouintconvert a string to an unsigned int -
kstrtoulconvert a string to an unsigned long -
kstrtoullconvert a string to an unsigned long long
kt
-
kthreadkernel threads -
kthread_kernel threadsadd -
kthread_bind a just-created kthread to a cpu.bind -
kthread_create a kthread.create -
kthread_create a kthread.create_ on_ node -
kthread_kernel threadsexit -
kthread_should this freezable kthread return now?freezable_ should_ stop -
kthread_kernel threadsresume -
kthread_create and wake a thread.run -
kthread_should this kthread return now?should_ stop -
kthread_kernel threadsshutdown -
kthread_kernel threadsstart -
kthread_stop a thread created by kthread_create.stop -
kthread_kernel threadssuspend -
kthread_kernel threadssuspend_ check -
kthread_kthread function to process kthread_workerworker_ fn -
ktime_add two ktime_t variablesadd -
ktime_Add a scalar nanoseconds value to a ktime_t variableadd_ ns -
ktime_Compare if a ktime_t value is bigger than another one.after -
ktime_Compare if a ktime_t value is smaller than another one.before -
ktime_Compares two ktime_t variables for less, greater or equalcompare -
ktime_Compares two ktime_t variables to see if they are equalequal -
ktime_get the monotonic time in ktime_t formatget -
ktime_get the real (wall-) time in ktime_t formatget_ real -
ktime_get the monotonic clock in timespec formatget_ ts -
ktime_Set a ktime_t variable from a seconds/nanoseconds valueset -
ktime_subtract two ktime_t variablessub -
ktime_Subtract a scalar nanoseconds value from a ktime_t variablesub_ ns -
ktime_convert a ktime_t variable to scalar nanosecondsto_ ns -
ktime_convert a ktime_t variable to timespec formatto_ timespec -
ktime_convert a ktime_t variable to timespec format only if the variable contains datato_ timespec_ cond -
ktime_convert a ktime_t variable to timeval formatto_ timeval -
ktrkernel tracing facility