Re: [PATCH] Document kfree and vfree NULL usage (resend)

From: Manfred Spraul (manfred_at_colorfullife.com)
Date: 12/05/04

  • Next message: Adrian Bunk: "[2.6 patch] drivers/char/n_tty.: make two functions static"
    Date:	Sun, 05 Dec 2004 17:59:28 +0100
    To: Kernel Stuff <kernel-stuff@comcast.net>
    
    

    Kernel Stuff wrote:

    >> * May not be called in interrupt context
    >>
    >>
    >Does this need to change to
    > * Must not be called in interrupt context
    >?
    >Is there a case where it is guaranteed that kfree will not sleep?
    >
    kfree never sleeps. The comment you mention is part of the vfree
    documentation.

    And you are right: for vfree, it's "must not be called". I'll send a
    separate patch. Or Andrew could just change it directly.

    --
        Manfred
    -
    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/
    

  • Next message: Adrian Bunk: "[2.6 patch] drivers/char/n_tty.: make two functions static"

    Relevant Pages

    • Re: [PATCH] resource release cleanup in net/
      ... > redundant checks before calls to kfree() and vfree() in the same files. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: can kfree sleep?
      ... > My interest at the moment is in what can sleep and what cannot sleep. ... > Are you saying that vfree can sleep or that vfree cannot be called from ... > at least one other context in addition to the NMI handler context (from ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Document kfree and vfree NULL usage (resend)
      ... Is there a case where it is guaranteed that kfree will not sleep? ... whereas calling it in interrupt ctx is definitely not recommended. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: can kfree sleep?
      ... > My interest at the moment is in what can sleep and what cannot sleep. ... > Are you saying that vfree can sleep or that vfree cannot be called from ... > at least one other context in addition to the NMI handler context (from ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [SCHED] wrong priority calc - SIMPLE test case
      ... 2 to begin treating all new sleep as noninteractive (stern ... These are all /proc settings at the moment, so I can set set my starvation ... pain threshold from super duper desktop to just as fair as a ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)