Query on module dependency handling in IrDA network drivers

manjunathg.kondaiah_at_wipro.com
Date: 12/22/04

  • Next message: Jeff Garzik: "Re: [PATCH] USB: fix Scheduling while atomic warning when resuming."
    Date:	Wed, 22 Dec 2004 10:15:23 +0530
    To: <linux-kernel@vger.kernel.org>
    
    

    Greetings All,

    This is with reference to handling of module dependencies in IrDA
    network drivers on 2.6.10-rc3.

    My understanding is that the lower most drivers (in the IrDA stack which
    will be platform dependent) should not be doing a try_module_get or a
    module_put in itself. My device however is not a hot-pluggable device,
    but I would like to dynamically load and unload the lower layer IrDA
    driver. If I am not using try_module_get in my lower layer driver, the
    issue that I am facing is: When the irda0 (in my case) is up and data is
    under transmission and I do an rmmod of the lower layer driver, the
    driver is being removed (the transfer stops meanwhile). This does not
    seem to be a proper behavior (If this is an expected behavior, could
    some one explain why this is so?). I would rather expect the rmmod to
    tell me that the module is busy and refuse to remove the module.

    Regards,
    Manjunath
    -
    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: Jeff Garzik: "Re: [PATCH] USB: fix Scheduling while atomic warning when resuming."

    Relevant Pages

    • Re: [irda-users] [PATCH] OMAP: Add support for IrDA driver #2
      ... I have attached the updated OMAP IrDA patch for OMAP1610/1710 and OMAP242x ... See that for IrDA driver to work on H3 and H4, ... Patch adds IrDA driver support for Texas Instruments OMAP ...
      (Linux-Kernel)
    • Linux v2.6.2-rc2
      ... There's a x86-64 update and IRDA updates here, and a number of USB storage ... RAID-6 fix for IA-64 ... Reduce stack usage in w9966 driver ... logic error in aty128fb ...
      (Linux-Kernel)
    • [PATCH] OMAP: Add support for IrDA driver
      ... I have attached the OMAP IrDA patch for OMAP1610/1710 and OMAP242x ... See that for IrDA driver to work on H3 and H4, ... Patch adds IrDA driver support for Texas Instruments OMAP ...
      (Linux-Kernel)
    • Re: infraredport and notebook
      ... I have used the nokia 6600 so far. ... Does IRDA use a driver? ... The "PC Suite" Nokia software even comes with its own Registry ...
      (alt.comp.periphs.mainboard.asus)
    • RE: Problem in SIR IrDA driver in Windows CE 4.2.
      ... functions specific to the Extended Systems Irda dongle. ... An internal Irda dongle is integrated into the hardware. ... Problem in SIR IrDA driver in Windows CE 4.2. ...
      (microsoft.public.windowsce.embedded)