Skip to contentSkip to conversation

calling write() from interrupt context

DISCUSSION Ian Brown 1 participant 1 message Apr 11, 2007 VFS

lore
Share & tools
lore

Ian Brown

author
#0 lore raw

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