From: "Ian Brown" Subject: calling write() from interrupt context Date: Wed, 11 Apr 2007 15:45:11 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: linux-fsdevel@vger.kernel.org Return-path: Received: from nz-out-0506.google.com ([64.233.162.228]:39902 "EHLO nz-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752433AbXDKMpM (ORCPT ); Wed, 11 Apr 2007 08:45:12 -0400 Received: by nz-out-0506.google.com with SMTP id s1so114091nze for ; Wed, 11 Apr 2007 05:45:12 -0700 (PDT) Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hello, I have a question regarding calling write() from an interrupt context in the kernel: is it possible ? There is an article about reading/writing files from the kernel by GregKH; see: http://interactive.linuxjournal.com/article/8110 Everybody (including the author) admits that reading/writing files from the kernel is not recommended at all. Yet, because of my interest in this, I tried it and it works. However, when trying write() from interrupt context it will not work because write() can sleep. Is there a way to call write() from interrupt context ? some special filesystem or patch? I found a dumpfs patch; but it was not tested yet; moreover, it is a patch against 2.6.8-rc2 and as it seems it was abandoned. see http://lwn.net/Articles/94748/?format=printable Any ideas? Regards, Ian