pidentd  3.0.19
About: implementation of the RFC1413 identification server (more or less complete rewrite compared to version 2)
  Fossies Dox: pidentd-3.0.19.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

kernel.c File Reference
#include "config.h"
#include <stdio.h>
#include <errno.h>
#include <syslog.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "pidentd.h"
Include dependency graph for kernel.c:

Go to the source code of this file.

Functions

struct kernelkernel_alloc (void)
 
void kernel_free (struct kernel *kp)
 
static void * kernel_thread (void *vp)
 
int kernel_init (void)
 
void kernel_query (struct kernel *kp)
 

Variables

int kernel_threads = 4
 
int kernel_buffers = 16
 
int kernel_attempts = 5
 
static buffer_t kbuf_request
 
static buffer_t kbuf_free
 
static void * ka_data = NULL
 

Function Documentation

◆ kernel_alloc()

struct kernel* kernel_alloc ( void  )

◆ kernel_free()

void kernel_free ( struct kernel kp)

Definition at line 70 of file kernel.c.

References kernel::argv, buffer_put(), kernel::cmd, kbuf_free, and s_free().

Referenced by handle_request().

◆ kernel_init()

int kernel_init ( void  )

◆ kernel_query()

void kernel_query ( struct kernel kp)

Definition at line 189 of file kernel.c.

References kernel::av, avail_wait(), buffer_put(), ka_data, kbuf_request, and kernel_thread().

Referenced by handle_request().

◆ kernel_thread()

static void* kernel_thread ( void *  vp)
static

Variable Documentation

◆ ka_data

void* ka_data = NULL
static

Definition at line 44 of file kernel.c.

Referenced by kernel_init(), and kernel_query().

◆ kbuf_free

buffer_t kbuf_free
static

Definition at line 40 of file kernel.c.

Referenced by kernel_alloc(), kernel_free(), and kernel_init().

◆ kbuf_request

buffer_t kbuf_request
static

Definition at line 39 of file kernel.c.

Referenced by kernel_init(), kernel_query(), and kernel_thread().

◆ kernel_attempts

int kernel_attempts = 5

Definition at line 36 of file kernel.c.

Referenced by conf_parse(), and kernel_thread().

◆ kernel_buffers

int kernel_buffers = 16

Definition at line 35 of file kernel.c.

Referenced by conf_parse(), and kernel_init().

◆ kernel_threads

int kernel_threads = 4

Definition at line 34 of file kernel.c.

Referenced by conf_parse(), ka_init(), kernel_init(), and main().