[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

kthread_kill Kernel Service

Purpose

Posts a signal to a specified kernel-only thread.

Syntax

#include <sys/thread.h>
void kthread_kill (tid, sig)
tid_t tid;
int sig;

Parameters

tid Specifies the target kernel-only thread. If its value is -1, the signal is posted to the calling thread.
sig Specifies the signal number to post.

Description

The kthread_kill kernel service posts the signal sig to the kernel thread specified by the tid parameter. When the service is called from the process environment, the target thread must be in the same process as the calling thread. When the service is called from the interrupt environment, the signal is posted to the target thread, without a permission check.

Execution Environment

The kthread_kill kernel service can be called from either the process environment or the interrupt environment.

Return Values

The kthread_kill kernel service has no return values.

Implementation Specifics

The kthread_kill kernel service is part of the Base Operating System (BOS) Runtime.

Related Information

The sig_chk kernel service.

Process and Exception Management Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]