id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
ksz_switch_macaddr_get(9) | NAME ksz_switch_macaddr_get - Program the switch's MAC address register.
SYNOPSIS int ksz_switch_macaddr_get (struct dsa_switch *ds , int port , struct netlink_ext_ack *extack );
ARGUMENTS ds DSA switch instance.
port Port number.
extack Netlink extended acknowledgment.
DESCRIPTI... |
ksz_switch_shutdown(9) | NAME ksz_switch_shutdown - Shutdown routine for the switch device.
SYNOPSIS void ksz_switch_shutdown (struct ksz_device *dev );
ARGUMENTS dev The switch device structure.
DESCRIPTION This function is responsible for initiating a shutdown sequence for the switch device. It invokes the reset operation defi... |
ksz_update_port_member(9) | NAME ksz_update_port_member - Adjust port forwarding rules based on STP state and isolation settings.
SYNOPSIS void ksz_update_port_member (struct ksz_device *dev , int port );
ARGUMENTS dev A pointer to the struct ksz_device representing the device.
port The port number to adjust.
DESCRIPTION... |
ksz_wol_pre_shutdown(9) | NAME ksz_wol_pre_shutdown - Prepares the switch device for shutdown while considering Wake-on-LAN (WoL) settings.
SYNOPSIS void ksz_wol_pre_shutdown (struct ksz_device *dev , bool *wol_enabled );
ARGUMENTS dev The switch device structure.
wol_enabled Pointer to a boolean which will be set to true if W... |
kszphy_get_sqi(9) | NAME kszphy_get_sqi - Read, average, and map Signal Quality Index (SQI)
SYNOPSIS int kszphy_get_sqi (struct phy_device *phydev );
ARGUMENTS phydev the PHY device
DESCRIPTION This function reads and processes the raw Signal Quality Index from the PHY. Based on empirical testing, a raw value of 8 or higher indi... |
kthread_affine_preferred(9) | NAME kthread_affine_preferred - Define a kthread's preferred affinity
SYNOPSIS int kthread_affine_preferred (struct task_struct *p , const struct cpumask *mask );
ARGUMENTS p thread created by kthread_create.
mask preferred mask of CPUs (might not be online, must be possible) for p to run on.... |
kthread_associate_blkcg(9) | NAME kthread_associate_blkcg - associate blkcg to current kthread
SYNOPSIS void kthread_associate_blkcg (struct cgroup_subsys_state *css );
ARGUMENTS css the cgroup info
DESCRIPTION Current thread must be a kthread. The thread is running jobs on behalf of other threads. In some cases, we expect the jobs ... |
kthread_bind(9) | NAME kthread_bind - bind a just-created kthread to a cpu.
SYNOPSIS void kthread_bind (struct task_struct *p , unsigned int cpu );
ARGUMENTS p thread created by kthread_create.
cpu cpu (might not be online, must be possible) for k to run on.
DESCRIPTION This function is equivalent to set_cpu... |
kthread_blkcg(9) | NAME kthread_blkcg - get associated blkcg css of current kthread
SYNOPSIS struct cgroup_subsys_state * kthread_blkcg (void );
ARGUMENTS void no arguments
DESCRIPTION Current thread must be a kthread.
SEE ALSO Kernel file ./kernel/kthread.c kthread_should_stop(9), kthread_should_park(9), kthread_freezabl... |
kthread_cancel_delayed_work_sync(9) | NAME kthread_cancel_delayed_work_sync - cancel a kthread delayed work and wait for it to finish.
SYNOPSIS bool kthread_cancel_delayed_work_sync (struct kthread_delayed_work *dwork );
ARGUMENTS dwork the kthread delayed work to cancel
DESCRIPTION This is kthread_cancel_work_sync for delayed works.
RETURN true ... |
kthread_cancel_work_sync(9) | NAME kthread_cancel_work_sync - cancel a kthread work and wait for it to finish
SYNOPSIS bool kthread_cancel_work_sync (struct kthread_work *work );
ARGUMENTS work the kthread work to cancel
DESCRIPTION Cancel work and wait for its execution to finish. This function can be used even if the work re-queues... |
kthread_complete_and_exit(9) | NAME kthread_complete_and_exit - Exit the current kthread.
SYNOPSIS void __noreturn kthread_complete_and_exit (struct completion *comp , long code );
ARGUMENTS comp Completion to complete
code The integer value to return to kthread_stop.
DESCRIPTION If present, complete comp and then return cod... |
kthread_create(9) | NAME kthread_create - create a kthread on the current node
SYNOPSIS kthread_create (threadfn , data , namefmt , arg... );
ARGUMENTS threadfn the function to run in the thread
data data pointer for threadfn
namefmt printf-style format string for the thread name
arg argumen... |
kthread_create_on_cpu(9) | NAME kthread_create_on_cpu - Create a cpu bound kthread
SYNOPSIS struct task_struct * kthread_create_on_cpu (int (*threadfn)(void *data) , void *data , unsigned int cpu , const char *namefmt );
ARGUMENTS threadfn the function to run until signal_pending(current).
data data ptr for threadfn.
... |
kthread_create_on_node(9) | NAME kthread_create_on_node - create a kthread.
SYNOPSIS struct task_struct * kthread_create_on_node (int (*threadfn)(void *data) , void *data , int node , const char namefmt[] , ... );
ARGUMENTS threadfn the function to run until signal_pending(current).
data data ptr for threadfn.
node ... |
kthread_create_worker_on_cpu(9) | NAME kthread_create_worker_on_cpu - create a kthread worker and bind it to a given CPU and the associated NUMA node.
SYNOPSIS struct kthread_worker * kthread_create_worker_on_cpu (int cpu , unsigned int flags , const char namefmt[] );
ARGUMENTS cpu CPU number
flags flags modifying the default be... |
kthread_create_worker_on_node(9) | NAME kthread_create_worker_on_node - create a kthread worker
SYNOPSIS struct kthread_worker * kthread_create_worker_on_node (unsigned int flags , int node , const char namefmt[] , ... );
ARGUMENTS flags flags modifying the default behavior of the worker
node task structure for the thread is alloc... |
kthread_data(9) | NAME kthread_data - return data value specified on kthread creation
SYNOPSIS void * kthread_data (struct task_struct *task );
ARGUMENTS task kthread task in question
DESCRIPTION Return the data value specified when kthread task was created. The caller is responsible for ensuring the validity of task when cal... |
kthread_delayed_work_timer_fn(9) | NAME kthread_delayed_work_timer_fn - callback that queues the associated kthread delayed work when the timer expires.
SYNOPSIS void kthread_delayed_work_timer_fn (struct timer_list *t );
ARGUMENTS t pointer to the expired timer
DESCRIPTION The format of the function is defined by struct timer_list. It sho... |
kthread_destroy_worker(9) | NAME kthread_destroy_worker - destroy a kthread worker
SYNOPSIS void kthread_destroy_worker (struct kthread_worker *worker );
ARGUMENTS worker worker to be destroyed
DESCRIPTION Flush and destroy worker. The simple flush is enough because the kthread worker API is used only in trivial scenarios. There are no... |
kthread_flush_work(9) | NAME kthread_flush_work - flush a kthread_work
SYNOPSIS void kthread_flush_work (struct kthread_work *work );
ARGUMENTS work work to flush
DESCRIPTION If work is queued or executing, wait for it to finish execution.
SEE ALSO Kernel file ./kernel/kthread.c kthread_should_stop(9), kthread_should_park(9), ... |
kthread_flush_worker(9) | NAME kthread_flush_worker - flush all current works on a kthread_worker
SYNOPSIS void kthread_flush_worker (struct kthread_worker *worker );
ARGUMENTS worker worker to flush
DESCRIPTION Wait until all currently executing or pending works on worker are finished.
SEE ALSO Kernel file ./kernel/kthread.c kthrea... |
kthread_freezable_should_stop(9) | NAME kthread_freezable_should_stop - should this freezable kthread return now?
SYNOPSIS bool kthread_freezable_should_stop (bool *was_frozen );
ARGUMENTS was_frozen optional out parameter, indicates whether current was frozen
DESCRIPTION kthread_should_stop for freezable kthreads, which will enter refrigerat... |
kthread_func(9) | NAME kthread_func - return the function specified on kthread creation
SYNOPSIS void * kthread_func (struct task_struct *task );
ARGUMENTS task kthread task in question
DESCRIPTION Returns NULL if the task is not a kthread.
SEE ALSO Kernel file ./kernel/kthread.c kthread_should_stop(9), kthread_should_... |
kthread_mod_delayed_work(9) | NAME kthread_mod_delayed_work - modify delay of or queue a kthread delayed work
SYNOPSIS bool kthread_mod_delayed_work (struct kthread_worker *worker , struct kthread_delayed_work *dwork , unsigned long delay );
ARGUMENTS worker kthread worker to use
dwork kthread delayed work to queue
dela... |
kthread_park(9) | NAME kthread_park - park a thread created by kthread_create().
SYNOPSIS int kthread_park (struct task_struct *k );
ARGUMENTS k thread created by kthread_create.
DESCRIPTION Sets kthread_should_park for k to return true, wakes it, and waits for it to return. This can also be called after kthread_create inst... |
kthread_probe_data(9) | NAME kthread_probe_data - speculative version of kthread_data()
SYNOPSIS void * kthread_probe_data (struct task_struct *task );
ARGUMENTS task possible kthread task in question
DESCRIPTION task could be a kthread task. Return the data value specified when it was created if accessible. If task isn't a kth... |
kthread_queue_delayed_work(9) | NAME kthread_queue_delayed_work - queue the associated kthread work after a delay.
SYNOPSIS bool kthread_queue_delayed_work (struct kthread_worker *worker , struct kthread_delayed_work *dwork , unsigned long delay );
ARGUMENTS worker target kthread_worker
dwork kthread_delayed_work to queue
... |
kthread_queue_work(9) | NAME kthread_queue_work - queue a kthread_work
SYNOPSIS bool kthread_queue_work (struct kthread_worker *worker , struct kthread_work *work );
ARGUMENTS worker target kthread_worker
work kthread_work to queue
DESCRIPTION Queue work to work processor task for async execution. task must have been ... |
kthread_run(9) | NAME kthread_run - create and wake a thread.
SYNOPSIS kthread_run (threadfn , data , namefmt , ... );
ARGUMENTS threadfn the function to run until signal_pending(current).
data data ptr for threadfn.
namefmt printf-style name for the thread.
... variable arguments
DESCRI... |
kthread_run_on_cpu(9) | NAME kthread_run_on_cpu - create and wake a cpu bound thread.
SYNOPSIS struct task_struct * kthread_run_on_cpu (int (*threadfn)(void *data) , void *data , unsigned int cpu , const char *namefmt );
ARGUMENTS threadfn the function to run until signal_pending(current).
data data ptr for threadfn.
... |
kthread_run_worker(9) | NAME kthread_run_worker - create and wake a kthread worker.
SYNOPSIS kthread_run_worker (flags , namefmt , ... );
ARGUMENTS flags flags modifying the default behavior of the worker
namefmt printf-style name for the thread.
... variable arguments
DESCRIPTION Convenient wrapper for kt... |
kthread_run_worker_on_cpu(9) | NAME kthread_run_worker_on_cpu - create and wake a cpu bound kthread worker.
SYNOPSIS struct kthread_worker * kthread_run_worker_on_cpu (int cpu , unsigned int flags , const char namefmt[] );
ARGUMENTS cpu CPU number
flags flags modifying the default behavior of the worker
namefmt pr... |
kthread_should_park(9) | NAME kthread_should_park - should this kthread park now?
SYNOPSIS bool kthread_should_park (void );
ARGUMENTS void no arguments
DESCRIPTION When someone calls kthread_park on your kthread, it will be woken and this will return true. You should then do the necessary cleanup and call kthread_parkme Simila... |
kthread_should_stop(9) | NAME kthread_should_stop - should this kthread return now?
SYNOPSIS bool kthread_should_stop (void );
ARGUMENTS void no arguments
DESCRIPTION When someone calls kthread_stop on your kthread, it will be woken and this will return true. You should then return, and your return value will be passed through to kt... |
kthread_stop(9) | NAME kthread_stop - stop a thread created by kthread_create().
SYNOPSIS int kthread_stop (struct task_struct *k );
ARGUMENTS k thread created by kthread_create.
DESCRIPTION Sets kthread_should_stop for k to return true, wakes it, and waits for it to exit. This can also be called after kthread_create... |
kthread_stop_put(9) | NAME kthread_stop_put - stop a thread and put its task struct
SYNOPSIS int kthread_stop_put (struct task_struct *k );
ARGUMENTS k thread created by kthread_create.
DESCRIPTION Stops a thread created by kthread_create and put its task_struct. Only use when holding an extra task struct reference obtained by... |
kthread_unpark(9) | NAME kthread_unpark - unpark a thread created by kthread_create().
SYNOPSIS void kthread_unpark (struct task_struct *k );
ARGUMENTS k thread created by kthread_create.
DESCRIPTION Sets kthread_should_park for k to return false, wakes it, and waits for it to return. If the thread is marked percpu then its b... |
kthread_unuse_mm(9) | NAME kthread_unuse_mm - reverse the effect of kthread_use_mm()
SYNOPSIS void kthread_unuse_mm (struct mm_struct *mm );
ARGUMENTS mm address space to operate on
SEE ALSO Kernel file ./kernel/kthread.c kthread_should_stop(9), kthread_should_park(9), kthread_freezable_should_stop(9), kthread_func(9), kt... |
kthread_use_mm(9) | NAME kthread_use_mm - make the calling kthread operate on an address space
SYNOPSIS void kthread_use_mm (struct mm_struct *mm );
ARGUMENTS mm address space to operate on
SEE ALSO Kernel file ./kernel/kthread.c kthread_should_stop(9), kthread_should_park(9), kthread_freezable_should_stop(9), kthread_fu... |
kthread_worker_fn(9) | NAME kthread_worker_fn - kthread function to process kthread_worker
SYNOPSIS int kthread_worker_fn (void *worker_ptr );
ARGUMENTS worker_ptr pointer to initialized kthread_worker
DESCRIPTION This function implements the main cycle of kthread worker. It processes work_list until it is stopped with kthread_stop. It ... |
kthreads_update_housekeeping(9) | NAME kthreads_update_housekeeping - Update kthreads affinity on cpuset change
SYNOPSIS int kthreads_update_housekeeping (void );
ARGUMENTS void no arguments
DESCRIPTION When cpuset changes a partition type to/from "isolated" or updates related cpumasks, propagate the housekeeping cpumask change to preferred... |
ktime_after(9) | NAME ktime_after - Compare if a ktime_t value is bigger than another one.
SYNOPSIS bool ktime_after (const ktime_t cmp1 , const ktime_t cmp2 );
ARGUMENTS cmp1 comparable1
cmp2 comparable2
RETURN true if cmp1 happened after cmp2.
SEE ALSO Kernel file ./include/linux/ktime.h ktime_set(9), ktime_... |
ktime_before(9) | NAME ktime_before - Compare if a ktime_t value is smaller than another one.
SYNOPSIS bool ktime_before (const ktime_t cmp1 , const ktime_t cmp2 );
ARGUMENTS cmp1 comparable1
cmp2 comparable2
RETURN true if cmp1 happened before cmp2.
SEE ALSO Kernel file ./include/linux/ktime.h ktime_set(9), kt... |
ktime_compare(9) | NAME ktime_compare - Compares two ktime_t variables for less, greater or equal
SYNOPSIS int ktime_compare (const ktime_t cmp1 , const ktime_t cmp2 );
ARGUMENTS cmp1 comparable1
cmp2 comparable2
RETURN ... cmp1 < cmp2: return <0 cmp1 == cmp2: return 0 cmp1 > cmp2: return >0
SEE ALSO Kernel f... |
ktime_compare_safe(9) | NAME ktime_compare_safe - compare two ktime structures This macro is similar to the standard ktime_compare() function, but attempts to also handle ktime overflows.
SYNOPSIS ktime_compare_safe (A , B );
ARGUMENTS A First ktime value
B Second ktime value
RETURN -1 if A < B, 0 if A == B, 1 i... |
ktime_get_aux(9) | NAME ktime_get_aux - Get time for a AUX clock
SYNOPSIS bool ktime_get_aux (clockid_t id , ktime_t *kt );
ARGUMENTS id ID of the clock to read (CLOCK_AUX...)
kt Pointer to ktime_t to store the time stamp
RETURN True if the timestamp is valid, false otherwise
SEE ALSO Kernel file ./kernel/... |
ktime_get_aux_ts64(9) | NAME ktime_get_aux_ts64 - Get time for a AUX clock
SYNOPSIS bool ktime_get_aux_ts64 (clockid_t id , struct timespec64 *ts );
ARGUMENTS id ID of the clock to read (CLOCK_AUX...)
ts Pointer to timespec64 to store the time stamp
RETURN True if the timestamp is valid, false otherwise
SEE ALSO ... |
ktime_get_boot_fast_ns(9) | NAME ktime_get_boot_fast_ns - NMI safe and fast access to boot clock.
SYNOPSIS u64 notrace ktime_get_boot_fast_ns (void );
ARGUMENTS void no arguments
DESCRIPTION To keep it NMI safe since we're accessing from tracing, we're not using a separate timekeeper with updates to monotonic clock and boot offset pr... |
ktime_get_boottime(9) | NAME ktime_get_boottime - Get monotonic time since boot in ktime_t format
SYNOPSIS ktime_t ktime_get_boottime (void );
ARGUMENTS void no arguments
DESCRIPTION This is similar to CLOCK_MONTONIC/ktime_get, but also includes the time spent in suspend.
RETURN monotonic time since boot in ktime_t format
SEE ALSO... |
ktime_get_boottime_ns(9) | NAME ktime_get_boottime_ns - Get the monotonic time since boot in nanoseconds
SYNOPSIS u64 ktime_get_boottime_ns (void );
ARGUMENTS void no arguments
RETURN current boottime converted to nanoseconds
SEE ALSO Kernel file ./include/linux/timekeeping.h ktime_get_real(9), ktime_get_boottime(9), ktime_get_cl... |
ktime_get_clock_ts64(9) | NAME ktime_get_clock_ts64 - Returns time of a clock in a timespec
SYNOPSIS void ktime_get_clock_ts64 (clockid_t id , struct timespec64 *ts );
ARGUMENTS id POSIX clock ID of the clock to read
ts Pointer to the timespec64 to be set
DESCRIPTION The timestamp is invalidated (ts->sec is set to -... |
ktime_get_clocktai(9) | NAME ktime_get_clocktai - Get the TAI time of day in ktime_t format
SYNOPSIS ktime_t ktime_get_clocktai (void );
ARGUMENTS void no arguments
RETURN the TAI time of day in ktime_t format
SEE ALSO Kernel file ./include/linux/timekeeping.h ktime_get_real(9), ktime_get_boottime(9), ktime_mono_to_real(9), ktim... |
ktime_get_clocktai_ns(9) | NAME ktime_get_clocktai_ns - Get the current TAI time of day in nanoseconds
SYNOPSIS u64 ktime_get_clocktai_ns (void );
ARGUMENTS void no arguments
RETURN current TAI time converted to nanoseconds
SEE ALSO Kernel file ./include/linux/timekeeping.h ktime_get_real(9), ktime_get_boottime(9), ktime_get_cloc... |
ktime_get_coarse_real_ts64_mg(9) | NAME ktime_get_coarse_real_ts64_mg - return latter of coarse grained time or floor
SYNOPSIS void ktime_get_coarse_real_ts64_mg (struct timespec64 *ts );
ARGUMENTS ts timespec64 to be filled
DESCRIPTION Fetch the global mg_floor value, convert it to realtime and compare it to the current coarse-grained time... |
ktime_get_mono_fast_ns(9) | NAME ktime_get_mono_fast_ns - Fast NMI safe access to clock monotonic
SYNOPSIS u64 notrace ktime_get_mono_fast_ns (void );
ARGUMENTS void no arguments
DESCRIPTION This timestamp is not guaranteed to be monotonic across an update. The timestamp is calculated by: now = base_mono + clock_delta * slope So if ... |
ktime_get_ns(9) | NAME ktime_get_ns - Get the current time in nanoseconds
SYNOPSIS u64 ktime_get_ns (void );
ARGUMENTS void no arguments
RETURN current time converted to nanoseconds
SEE ALSO Kernel file ./include/linux/timekeeping.h ktime_get_real(9), ktime_get_boottime(9), ktime_get_clocktai(9), ktime_mono_to_rea... |
ktime_get_raw(9) | NAME ktime_get_raw - Returns the raw monotonic time in ktime_t format
SYNOPSIS ktime_t ktime_get_raw (void );
ARGUMENTS void no arguments
SEE ALSO Kernel file ./kernel/time/timekeeping.c struct tk_fast(9), tk_setup_internals(9), update_fast_timekeeper(9), ktime_get_mono_fast_ns(9), ktime_get_raw_fast_n... |
ktime_get_raw_fast_ns(9) | NAME ktime_get_raw_fast_ns - Fast NMI safe access to clock monotonic raw
SYNOPSIS u64 notrace ktime_get_raw_fast_ns (void );
ARGUMENTS void no arguments
DESCRIPTION Contrary to ktime_get_mono_fast_ns this is always correct because the conversion factor is not affected by NTP/PTP correction.
SEE ALSO Kernel ... |
ktime_get_raw_ns(9) | NAME ktime_get_raw_ns - Get the raw monotonic time in nanoseconds
SYNOPSIS u64 ktime_get_raw_ns (void );
ARGUMENTS void no arguments
RETURN current raw monotonic time converted to nanoseconds
SEE ALSO Kernel file ./include/linux/timekeeping.h ktime_get_real(9), ktime_get_boottime(9), ktime_get_clocktai(9), ... |
ktime_get_raw_ts64(9) | NAME ktime_get_raw_ts64 - Returns the raw monotonic time in a timespec
SYNOPSIS void ktime_get_raw_ts64 (struct timespec64 *ts );
ARGUMENTS ts pointer to the timespec64 to be set
DESCRIPTION Returns the raw monotonic time (completely un-modified by ntp)
SEE ALSO Kernel file ./kernel/time/timekeeping.c s... |
ktime_get_real(9) | NAME ktime_get_real - get the real (wall-) time in ktime_t format
SYNOPSIS ktime_t ktime_get_real (void );
ARGUMENTS void no arguments
RETURN real (wall) time in ktime_t format
SEE ALSO Kernel file ./include/linux/timekeeping.h ktime_get_boottime(9), ktime_get_clocktai(9), ktime_mono_to_real(9), ... |
ktime_get_real_fast_ns(9) | NAME ktime_get_real_fast_ns - - NMI safe and fast access to clock realtime.
SYNOPSIS u64 ktime_get_real_fast_ns (void );
ARGUMENTS void no arguments
DESCRIPTION See ktime_get_mono_fast_ns for documentation of the time stamp ordering.
SEE ALSO Kernel file ./kernel/time/timekeeping.c struct tk_fast(9), tk... |
ktime_get_real_ns(9) | NAME ktime_get_real_ns - Get the current real/wall time in nanoseconds
SYNOPSIS u64 ktime_get_real_ns (void );
ARGUMENTS void no arguments
RETURN current real time converted to nanoseconds
SEE ALSO Kernel file ./include/linux/timekeeping.h ktime_get_real(9), ktime_get_boottime(9), ktime_get_clocktai(9), kt... |
ktime_get_real_seconds(9) | NAME ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME
SYNOPSIS time64_t ktime_get_real_seconds (void );
ARGUMENTS void no arguments
DESCRIPTION Returns the wall clock seconds since 1970. For 64bit systems the fast access to tk->xtime_sec is preserved. On 32bit systems the access must be p... |
ktime_get_real_ts64(9) | NAME ktime_get_real_ts64 - Returns the time of day in a timespec64.
SYNOPSIS void ktime_get_real_ts64 (struct timespec64 *ts );
ARGUMENTS ts pointer to the timespec to be set
DESCRIPTION Returns the time of day in a timespec64 (WARN if suspended).
SEE ALSO Kernel file ./kernel/time/timekeeping.c st... |
ktime_get_real_ts64_mg(9) | NAME ktime_get_real_ts64_mg - attempt to update floor value and return result
SYNOPSIS void ktime_get_real_ts64_mg (struct timespec64 *ts );
ARGUMENTS ts pointer to the timespec to be set
DESCRIPTION Get a monotonic fine-grained time value and attempt to swap it into mg_floor. If that succeeds then accept ... |
ktime_get_seconds(9) | NAME ktime_get_seconds - Get the seconds portion of CLOCK_MONOTONIC
SYNOPSIS time64_t ktime_get_seconds (void );
ARGUMENTS void no arguments
DESCRIPTION Returns the seconds portion of CLOCK_MONOTONIC with a single non serialized read. tk->ktime_sec is of type 'unsigned long' so this works on both 32 and 64... |
ktime_get_snapshot(9) | NAME ktime_get_snapshot - snapshots the realtime/monotonic raw clocks with counter
SYNOPSIS void ktime_get_snapshot (struct system_time_snapshot *systime_snapshot );
ARGUMENTS systime_snapshot pointer to struct receiving the system time snapshot
SEE ALSO Kernel file ./kernel/time/timekeeping.c struct tk_fast(9),... |
ktime_get_tai_fast_ns(9) | NAME ktime_get_tai_fast_ns - NMI safe and fast access to tai clock.
SYNOPSIS u64 notrace ktime_get_tai_fast_ns (void );
ARGUMENTS void no arguments
DESCRIPTION The same limitations as described for ktime_get_boot_fast_ns apply. The mono time and the TAI offset are not read atomically which may yield wron... |
ktime_get_ts64(9) | NAME ktime_get_ts64 - get the monotonic clock in timespec64 format
SYNOPSIS void ktime_get_ts64 (struct timespec64 *ts );
ARGUMENTS ts pointer to timespec variable
DESCRIPTION The function calculates the monotonic clock from the realtime clock and the wall_to_monotonic offset and stores the result in normal... |
ktime_get_update_offsets_now(9) | NAME ktime_get_update_offsets_now - hrtimer helper
SYNOPSIS ktime_t ktime_get_update_offsets_now (unsigned int *cwsseq , ktime_t *offs_real , ktime_t *offs_boot , ktime_t *offs_tai );
ARGUMENTS cwsseq pointer to check and store the clock was set sequence number
offs_real pointer to storage for monotoni... |
ktime_mono_to_any(9) | NAME ktime_mono_to_any - convert monotonic time to any other time
SYNOPSIS ktime_t ktime_mono_to_any (ktime_t tmono , enum tk_offsets offs );
ARGUMENTS tmono time to convert.
offs which offset to use
SEE ALSO Kernel file ./kernel/time/timekeeping.c struct tk_fast(9), tk_setup_internals(9), ... |
ktime_mono_to_real(9) | NAME ktime_mono_to_real - Convert monotonic time to clock realtime
SYNOPSIS ktime_t ktime_mono_to_real (ktime_t mono );
ARGUMENTS mono monotonic time to convert
RETURN time converted to realtime clock
SEE ALSO Kernel file ./include/linux/timekeeping.h ktime_get_real(9), ktime_get_boottime(9), ktime_get_... |
ktime_real_to_base_clock(9) | NAME ktime_real_to_base_clock - Convert CLOCK_REALTIME timestamp to a base clock timestamp
SYNOPSIS bool ktime_real_to_base_clock (ktime_t treal , enum clocksource_ids base_id , u64 *cycles );
ARGUMENTS treal CLOCK_REALTIME timestamp to convert
base_id base clocksource id
cycles pointer... |
ktime_set(9) | NAME ktime_set - Set a ktime_t variable from a seconds/nanoseconds value
SYNOPSIS ktime_t ktime_set (const s64 secs , const unsigned long nsecs );
ARGUMENTS secs seconds to set
nsecs nanoseconds to set
RETURN The ktime_t representation of the value.
SEE ALSO Kernel file ./include/linux/ktime.h ... |
ktime_to_timespec64_cond(9) | NAME ktime_to_timespec64_cond - convert a ktime_t variable to timespec64 format only if the variable contains data
SYNOPSIS bool ktime_to_timespec64_cond (const ktime_t kt , struct timespec64 *ts );
ARGUMENTS kt the ktime_t variable to convert
ts the timespec variable to store the result in
... |
kuid_root_in_ns(9) | NAME kuid_root_in_ns - check whether the given kuid is root in the given ns
SYNOPSIS bool kuid_root_in_ns (kuid_t kuid , struct user_namespace *ns );
ARGUMENTS kuid the kuid to be tested
ns the user namespace to test against
DESCRIPTION Returns true if kuid represents the root user in ns, fal... |
kunit_activate_static_stub(9) | NAME kunit_activate_static_stub - replace a function using static stubs.
SYNOPSIS kunit_activate_static_stub (test , real_fn_addr , replacement_addr );
ARGUMENTS test A pointer to the 'struct kunit' test context for the current test.
real_fn_addr
The address of the function to replac... |
kunit_add_action(9) | NAME kunit_add_action - Call a function when the test ends.
SYNOPSIS int kunit_add_action (struct kunit *test , kunit_action_t *action , void *ctx );
ARGUMENTS test Test case to associate the action with.
action The function to run on test exit
ctx Data passed into func
DESCRIPTIO... |
kunit_add_action_or_reset(9) | NAME kunit_add_action_or_reset - Call a function when the test ends.
SYNOPSIS int kunit_add_action_or_reset (struct kunit *test , kunit_action_t *action , void *ctx );
ARGUMENTS test Test case to associate the action with.
action The function to run on test exit
ctx Data passed int... |
kunit_add_named_resource(9) | NAME kunit_add_named_resource - Add a named *test managed resource*.
SYNOPSIS int kunit_add_named_resource (struct kunit *test , kunit_resource_init_t init , kunit_resource_free_t free , struct kunit_resource *res , const char *name , void *data );
ARGUMENTS test The test context object.
init a ... |
kunit_add_resource(9) | NAME kunit_add_resource - Add a *test managed resource*.
SYNOPSIS int kunit_add_resource (struct kunit *test , kunit_resource_init_t init , kunit_resource_free_t free , struct kunit_resource *res , void *data );
ARGUMENTS test The test context object.
init a user-supplied function to initialize ... |
kunit_alloc_and_get_resource(9) | NAME kunit_alloc_and_get_resource - Allocates and returns a *test managed resource*.
SYNOPSIS struct kunit_resource * kunit_alloc_and_get_resource (struct kunit *test , kunit_resource_init_t init , kunit_resource_free_t free , gfp_t internal_gfp , void *context );
ARGUMENTS test The test context object.
... |
kunit_alloc_resource(9) | NAME kunit_alloc_resource - Allocates a *test managed resource*.
SYNOPSIS void * kunit_alloc_resource (struct kunit *test , kunit_resource_init_t init , kunit_resource_free_t free , gfp_t internal_gfp , void *context );
ARGUMENTS test The test context object.
init a user supplied function to ini... |
kunit_attach_mm(9) | NAME kunit_attach_mm - Create and attach a new mm if it doesn't already exist.
SYNOPSIS int kunit_attach_mm (void );
ARGUMENTS void no arguments
DESCRIPTION Allocates a struct mm_struct and attaches it to current. In most cases, call kunit_vm_mmap without calling kunit_attach_mm directly. Only necessary when... |
kunit_deactivate_static_stub(9) | NAME kunit_deactivate_static_stub - disable a function redirection
SYNOPSIS void kunit_deactivate_static_stub (struct kunit *test , void *real_fn_addr );
ARGUMENTS test A pointer to the 'struct kunit' test context for the current test.
real_fn_addr
The address of the function to no-l... |
kunit_destroy_resource(9) | NAME kunit_destroy_resource - Find a kunit_resource and destroy it.
SYNOPSIS int kunit_destroy_resource (struct kunit *test , kunit_resource_match_t match , void *match_data );
ARGUMENTS test Test case to which the resource belongs.
match Match function. Returns whether a given resource matches m... |
kunit_device_register(9) | NAME kunit_device_register - Create a struct device for use in KUnit tests
SYNOPSIS struct device * kunit_device_register (struct kunit *test , const char *name );
ARGUMENTS test The test context object.
name The name to give the created device.
DESCRIPTION Creates a struct kunit_device (wh... |
kunit_device_register_with_driver(9) | NAME kunit_device_register_with_driver - Create a struct device for use in KUnit tests
SYNOPSIS struct device * kunit_device_register_with_driver (struct kunit *test , const char *name , const struct device_driver *drv );
ARGUMENTS test The test context object.
name The name to give the created ... |
kunit_device_unregister(9) | NAME kunit_device_unregister - Unregister a KUnit-managed device
SYNOPSIS void kunit_device_unregister (struct kunit *test , struct device *dev );
ARGUMENTS test The test context object which created the device
dev The device.
DESCRIPTION Unregisters and destroys a struct device which was crea... |
kunit_driver_create(9) | NAME kunit_driver_create - Create a struct device_driver attached to the kunit_bus
SYNOPSIS struct device_driver * kunit_driver_create (struct kunit *test , const char *name );
ARGUMENTS test The test context object.
name The name to give the created driver.
DESCRIPTION Creates a struct device_... |
kunit_err(9) | NAME kunit_err - Prints an ERROR level message associated with @test.
SYNOPSIS kunit_err (test , fmt , ... );
ARGUMENTS test The test context object.
fmt A printk style format string.
... variable arguments
DESCRIPTION Prints an error level message.
SEE ALSO Kernel file ./in... |
kunit_fail_current_test(9) | NAME kunit_fail_current_test - If a KUnit test is running, fail it.
SYNOPSIS kunit_fail_current_test (fmt , ... );
ARGUMENTS fmt -- undescribed --
... variable arguments
DESCRIPTION If a KUnit test is running in the current task, mark that test as failed.
SEE ALSO Kernel file ./include/kunit... |
kunit_find_named_resource(9) | NAME kunit_find_named_resource - Find a resource using match name.
SYNOPSIS struct kunit_resource * kunit_find_named_resource (struct kunit *test , const char *name );
ARGUMENTS test Test case to which the resource belongs.
name match name.
SEE ALSO Kernel file ./include/kunit/resource.h struc... |
kunit_find_resource(9) | NAME kunit_find_resource - Find a resource using match function/data.
SYNOPSIS struct kunit_resource * kunit_find_resource (struct kunit *test , kunit_resource_match_t match , void *match_data );
ARGUMENTS test Test case to which the resource belongs.
match match function to be applied to resourc... |
kunit_get_current_test(9) | NAME kunit_get_current_test - Return a pointer to the currently running KUnit test.
SYNOPSIS struct kunit * kunit_get_current_test (void );
ARGUMENTS void no arguments
DESCRIPTION If a KUnit test is running in the current task, returns a pointer to its associated struct kunit. This pointer can then be passe... |
kunit_get_resource(9) | NAME kunit_get_resource - Hold resource for use. Should not need to be used by most users as we automatically get resources retrieved by kunit_find_resource*().
SYNOPSIS void kunit_get_resource (struct kunit_resource *res );
ARGUMENTS res resource
SEE ALSO Kernel file ./include/kunit/resource.h struct ku... |
kunit_info(9) | NAME kunit_info - Prints an INFO level message associated with @test.
SYNOPSIS kunit_info (test , fmt , ... );
ARGUMENTS test The test context object.
fmt A printk style format string.
... variable arguments
DESCRIPTION Prints an info level message associated with the test suit... |
kunit_kcalloc(9) | NAME kunit_kcalloc - Just like kunit_kmalloc_array(), but zeroes the allocation.
SYNOPSIS void * kunit_kcalloc (struct kunit *test , size_t n , size_t size , gfp_t gfp );
ARGUMENTS test The test context object.
n number of elements.
size The size in bytes of the desired memory.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.