The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions
subrequest.c File Reference

Unlang "subrequest" and "detach" keyword evaluation. More...

#include <freeradius-devel/server/state.h>
#include <freeradius-devel/server/tmpl_dcursor.h>
#include <freeradius-devel/unlang/action.h>
#include "unlang_priv.h"
#include "interpret_priv.h"
#include "subrequest_priv.h"
#include "subrequest_child_priv.h"
+ Include dependency graph for subrequest.c:

Go to the source code of this file.

Functions

request_tunlang_subrequest_alloc (request_t *parent, fr_dict_t const *namespace)
 Allocate a subrequest to run through a virtual server at some point in the future. More...
 
void unlang_subrequest_detach_and_free (request_t **child)
 Free a child request, detaching it from its parent and freeing allocated memory. More...
 
void unlang_subrequest_op_free (void)
 
int unlang_subrequest_op_init (void)
 Initialise subrequest ops. More...
 
static unlang_action_t unlang_subrequest_parent_init (rlm_rcode_t *p_result, request_t *request, unlang_stack_frame_t *frame)
 
static unlang_action_t unlang_subrequest_parent_resume (rlm_rcode_t *p_result, request_t *request, unlang_stack_frame_t *frame)
 Parent being resumed after a child completes. More...
 
static void unlang_subrequest_signal_child (UNUSED request_t *request, unlang_stack_frame_t *frame, fr_signal_t action)
 Send a signal from parent request to subrequest. More...
 

Detailed Description

Unlang "subrequest" and "detach" keyword evaluation.

Id
35c8e18c71d17cfa0644fa5f01de83c1c76ed96a
Id
92746932b6e2ed7a89f82add5bca019563080f95

Definition in file subrequest.c.

Function Documentation

◆ unlang_subrequest_alloc()

request_t* unlang_subrequest_alloc ( request_t parent,
fr_dict_t const *  namespace 
)

Allocate a subrequest to run through a virtual server at some point in the future.

Parameters
[in]parentto hang sub request off of.
[in]namespacethe child will operate in.
Returns
  • A new child request.
  • NULL on failure.

Definition at line 287 of file subrequest.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_subrequest_detach_and_free()

void unlang_subrequest_detach_and_free ( request_t **  child)

Free a child request, detaching it from its parent and freeing allocated memory.

Parameters
[in]childto free.

Definition at line 272 of file subrequest.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_subrequest_op_free()

void unlang_subrequest_op_free ( void  )

Definition at line 313 of file subrequest.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_subrequest_op_init()

int unlang_subrequest_op_init ( void  )

Initialise subrequest ops.

Definition at line 295 of file subrequest.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_subrequest_parent_init()

static unlang_action_t unlang_subrequest_parent_init ( rlm_rcode_t p_result,
request_t request,
unlang_stack_frame_t frame 
)
static

Definition at line 146 of file subrequest.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_subrequest_parent_resume()

static unlang_action_t unlang_subrequest_parent_resume ( rlm_rcode_t p_result,
request_t request,
unlang_stack_frame_t frame 
)
static

Parent being resumed after a child completes.

Definition at line 83 of file subrequest.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_subrequest_signal_child()

static void unlang_subrequest_signal_child ( UNUSED request_t request,
unlang_stack_frame_t frame,
fr_signal_t  action 
)
static

Send a signal from parent request to subrequest.

Definition at line 38 of file subrequest.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: