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_parent_signal (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
bc1a93851ce38ba754e48e0480f4198306411ea1
Id
9e8bd9f9758cdd3f69e2a8802fdd5a33bf9e489a

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 266 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 251 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 291 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 274 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 125 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 62 of file subrequest.c.

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

◆ unlang_subrequest_parent_signal()

static void unlang_subrequest_parent_signal ( 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: