Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751903Ab0BPFs1 (ORCPT ); Tue, 16 Feb 2010 00:48:27 -0500 Received: from mail-px0-f191.google.com ([209.85.216.191]:44760 "EHLO mail-px0-f191.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750759Ab0BPFs0 (ORCPT ); Tue, 16 Feb 2010 00:48:26 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=UQuFP3m1jTmRwuPY9q5vqsutqIw402mvpsyOQIgnHUStN0ysICRXlNuYo39RdrAkf1 cdBaFD1M7sDtvCU1PjH2ekykMbLcFVPcoAUNmpph0Av3n+ZF28ZoO4mJTdH29MtbBAY5 ryBaWPNniSFAP60ZmKQlCLLgOjh42epCO3fH8= MIME-Version: 1.0 Date: Tue, 16 Feb 2010 11:18:25 +0530 Message-ID: Subject: Notification when a task is created/exits From: "Leonidas ." To: linux-kernel Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 727 Lines: 18 Hi folks, Is it possible to register a set of callbacks from my module so that these call backs get called whenever a certain task is created or exits. Basically, I want to keep track of all the threads which are created and are exiting, my module should get notified of these events somehow. One way is to call my functions directly from the task creation and exit functions, but I personally do not like this approach since I dont want to mess with this core kernel code. -Leo. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/