mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: kuznet@ms2.inr.ac.ru
Cc: alan@lxorguk.ukuu.org.uk (Alan Cox),
	rusty@rustcorp.com.au, davem@redhat.com, sfr@canb.auug.org.au,
	linux-kernel@vger.kernel.org
Subject: Re: Moving fasync_struct into struct file?
Date: Wed, 20 Feb 2002 02:04:06 +0000 (GMT)	[thread overview]
Message-ID: <E16dM74-0002Do-00@the-village.bc.nu> (raw)
In-Reply-To: <200202191917.WAA28452@ms2.inr.ac.ru> from "kuznet@ms2.inr.ac.ru" at Feb 19, 2002 10:17:11 PM

> > We already clean up fasync structures on close,
> We do not.

Then fix your driver. All the drivers I looked at do stuff like this...
which seems to do the job nicely

static int close_pad(struct inode * inode, struct file * file)
{
        lock_kernel();
        fasync_pad(-1, file, 0);
        if (!--active)
                outb(0x30, current_params.io+2);  /* switch off digitiser */
        unlock_kernel();
        return 0;
}

  reply	other threads:[~2002-02-20  1:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-19  7:18 Rusty Russell
2002-02-19  9:11 ` Alan Cox
2002-02-19 19:17   ` kuznet
2002-02-20  2:04     ` Alan Cox [this message]
2002-02-20 19:13       ` kuznet
2002-02-19 10:40 ` Bob Dunlop
2002-02-19 19:08 ` kuznet
     [not found] <E16d4XU-0003VI-00@wagner.rustcorp.com.au.suse.lists.linux.kernel>
2002-02-19  9:27 ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E16dM74-0002Do-00@the-village.bc.nu \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=davem@redhat.com \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=sfr@canb.auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®