Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.system > #576

rmmod with a kernel delayed work running in the loadable kernel module

X-Received by 10.66.102.69 with SMTP id fm5mr2053950pab.24.1384484200861; Thu, 14 Nov 2013 18:56:40 -0800 (PST)
X-Received by 10.50.30.169 with SMTP id t9mr115690igh.2.1384484200709; Thu, 14 Nov 2013 18:56:40 -0800 (PST)
Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!y3no8732174pbx.0!news-out.google.com!9ni28650qaf.0!nntp.google.com!i2no1605390qav.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.os.linux.development.system
Date Thu, 14 Nov 2013 18:56:40 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=12.218.212.162; posting-account=fivpegoAAADyFLrppbncj1hYSz8TFR1j
NNTP-Posting-Host 12.218.212.162
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <79e9876e-cd2c-42aa-8f43-47d5dfb77a20@googlegroups.com> (permalink)
Subject rmmod with a kernel delayed work running in the loadable kernel module
From Shankar Vaideeswaran <sankaranarayanan.vaideeswaran@gmail.com>
Injection-Date Fri, 15 Nov 2013 02:56:40 +0000
Content-Type text/plain; charset=ISO-8859-1
Lines 10
Xref csiph.com comp.os.linux.development.system:576

Show key headers only | View raw


Hi,

I am kind of a beginner in Linux kernel and I am facing the following problem:

I have a kernel module, that has a delayed work initialized to log some things to a file periodically. I am using filp_open, vfs_write to do so.

When i want to unload the module, its not allowing the operation as expected because i have the file pointer open.

are there any callbacks/commands, that will tell the kernel module to close such a reference and rmmod the module?

thanks a lot.

Back to comp.os.linux.development.system | Previous | NextNext in thread | Find similar


Thread

rmmod with a kernel delayed work running in the loadable kernel module Shankar Vaideeswaran <sankaranarayanan.vaideeswaran@gmail.com> - 2013-11-14 18:56 -0800
  Re: rmmod with a kernel delayed work running in the loadable kernel module Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-11-14 22:52 -0500

csiph-web