Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1160999AbWJRObM (ORCPT ); Wed, 18 Oct 2006 10:31:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161036AbWJRObM (ORCPT ); Wed, 18 Oct 2006 10:31:12 -0400 Received: from mx0.karneval.cz ([81.27.192.122]:38157 "EHLO av2.karneval.cz") by vger.kernel.org with ESMTP id S1160999AbWJRObL (ORCPT ); Wed, 18 Oct 2006 10:31:11 -0400 Message-ID: <45363AA1.1070604@stud.feec.vutbr.cz> Date: Wed, 18 Oct 2006 16:30:57 +0200 From: Michal Schmidt User-Agent: IceDove 1.5.0.7 (X11/20061014) MIME-Version: 1.0 To: Kay Tiong Khoo CC: linux-kernel@vger.kernel.org Subject: Re: stopping a process during a timer interrupt References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 720 Lines: 17 Kay Tiong Khoo skrev: > On a timer interrupt, I tried to stop the current process by changing > it's run state to TASK_STOPPED via set_current_state(TASK_STOPPED). > However, this results in a system hang. > > I can't find a way to stop the current process during an interrupt > context. Does such code exist in the kernel? If not, how does one go > about implementing it from within a kernel module. In interrupt context there's no "current process" by definition. Michal - 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/