Re: [1/1] connector: Kernel connector - userspace <-> kernelspace "linker".

From: Luis R. Rodriguez (mcgrof_at_studorgs.rutgers.edu)
Date: 09/24/04

  • Next message: Kenji Kaneshige: "[PATCH] Updated patches for PCI IRQ resource deallocation support [2/3]"
    Date:	Fri, 24 Sep 2004 01:48:44 -0400
    To: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
    
    
    

    On Fri, Sep 24, 2004 at 07:40:32AM +0400, Evgeniy Polyakov wrote:
    > On Fri, 2004-09-24 at 01:54, Luis R. Rodriguez wrote:
    > > RFC:
    > >
    > > Can and should we work towards using this as interface for drivers that
    > > need callbacks from an external (closed source) library/HAL?
    >
    > As I mentioned to Richard Jonson, it can be considered as
    > ioctl. ioctl-ng!
    > Unified interface (as ioctl) can be used for any type of modules.
    > It is just a bit extended ioctl :)
    >
    > And _yes_, it can be used to turn on/off binary-only callbacks.
    > Remember pwc - closed part can register callback and open part can
    > send message, or even closed part can register notification when
    > open part registers itself and begin to "trash the kernel".
    >
    > I understand that it is not right way to include it is into the kernel,
    > but I personally do not understand how it is different
    > from just extended ioctl. It was designed to be usefull and convenient,
    > and it is.
    >
    > BTW, any binary-only module can _itself_ create netlink socket
    > with input callback. And that is all - it will be absolutely
    > the same as above.
    >
    > One may consider connector as yet-another-netlink-helper.
    >

    Eh. I'm just wondering if there's any *right* way of using binary
    callbacks on a linux driver so that it doesn't *taint* and possibly
    *trash it*, as you said. I was wondering if perhaps through the
    connector we could somehow protect the kernel of possibly ill-behaved callbacks.

    Comments?

            Luis

    -- 
    GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84  A34A 6ADD 4937 E20A 525E
    
    

    -
    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: Kenji Kaneshige: "[PATCH] Updated patches for PCI IRQ resource deallocation support [2/3]"

    Relevant Pages

    • Re: [1/1] connector: Kernel connector - userspace <-> kernelspace "linker".
      ... Unified interface can be used for any type of modules. ... It is just a bit extended ioctl:) ... Remember pwc - closed part can register callback and open part can ...
      (Linux-Kernel)
    • [PATCH 24/30] blk_end_request: add callback feature (take 4)
      ... which has driver callback feature. ... Drivers may need to do special works between end_that_request_first ... This interface is only for fallback of other blk_end_request interfaces. ... completing request even if no leftover in the request. ...
      (Linux-Kernel)
    • Re: Problem with imported callback to C#
      ... Usually it happens when callback declaration is using non-standard ... exposes interface, which enables to set a callback, which is called ... DirectShow graph with mentioned face detector filter and calls its ... int BufferCB; ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Function pointers (Callback functions) in Java ?
      ... object to a local var called 'callback'. ... > In the above I don't see the Opps interface. ... The code was a very simple example of creating a named inner class ... Its may be worth knowing that you can create anonymous inner classes ...
      (comp.lang.java.programmer)
    • Re: Callback Interface functions NOT being Called
      ... a callback interface interface ICallbackInterface which implements the ... callback functions of the buttons I create in Ribbon interface. ... The ribbon callbacks use IDispatch, always, so you must return ... You need COM_INTERFACE_ENTRY2(IDispatch, ICallbackInterface) ...
      (microsoft.public.office.developer.com.add_ins)