upipe/uprobe_helper_alloc.h header reference

uprobe helper functions to allocate probes More

Header inclusion  

Members  

Macro  

Description  

uprobe helper functions to allocate probes

Members detail  

#define UPROBE_HELPER_ALLOC(STRUCTURE)  

This macro is declared in upipe/uprobe_helper_alloc.h source file, line 67.

This macro declares two functions to allocate probes.

Supposing the name of your structure is uprobe_foo, it declares:

  • struct uprobe_foo_alloc;

    A structure containing the probe and a urefcount.

  • struct uprobe *uprobe_foo_alloc(...)

    A wrapper to uprobe_foo_init() which allocates the structure before.

  • static void uprobe_foo_free(struct urefcount *urefcount)

    Called when the refcount goes down to zero, to deallocate the structure.

Please note that you must declare uprobe_foo_init and uprobe_foo_clean before this helper, and the macros ARGS_DECL and ARGS must be filled respectively with the declaration of arguments of uprobe_foo_alloc, and the use of them in the call to uprobe_foo_init.

Parameter list:

  • STRUCTURE: name of your public uprobe super-structure your private uprobe structure

#define _UPIPE_UPROBE_HELPER_ALLOC_H_  

This macro is declared in upipe/uprobe_helper_alloc.h source file, line 31.

Valid XHTML 1.0 StrictGenerated by cmassiot on Fri Feb 2 23:57:19 2018 using MkDoc