qres.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <aquosa/qres_lib.h>
#include <linux/aquosa/qos_debug.h>
#include <aquosa/qsup_lib.h>

Go to the source code of this file.

Functions

static void qos_assert (int cond, const char *msg)
static unsigned int str2flags (char str_flags[5])
static void flags2str (unsigned int flags, char str_flags[5])
int proc_begin (pid_t pid)
 Returns non-zero if succeeded, and 0 on error (pid not found).
tid_t proc_next (void)
 Returns the next tid in the iteration, or 0 if finished.
int main (int argc, char *argv[])

Variables

char ** environ
FILE * fproc = NULL
 popen() end kept for iterating over children
char fname [32]

Function Documentation

static void flags2str ( unsigned int  flags,
char  str_flags[5] 
) [inline, static]

Definition at line 30 of file apps/qres.c.

References QOS_F_DEFAULT, QOS_F_PERSISTENT, and QOS_F_SOFT.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)
int proc_begin ( pid_t  pid  ) 

Returns non-zero if succeeded, and 0 on error (pid not found).

Definition at line 45 of file apps/qres.c.

References fname, and fproc.

Referenced by main().

tid_t proc_next ( void   ) 

Returns the next tid in the iteration, or 0 if finished.

Definition at line 52 of file apps/qres.c.

References fproc, qos_assert(), and tid.

Referenced by main().

static void qos_assert ( int  cond,
const char *  msg 
) [inline, static]

Definition at line 12 of file apps/qres.c.

Referenced by main(), and proc_next().

static unsigned int str2flags ( char  str_flags[5]  )  [inline, static]

Definition at line 19 of file apps/qres.c.

References QOS_F_DEFAULT, QOS_F_PERSISTENT, and QOS_F_SOFT.

Referenced by main().


Variable Documentation

char** environ
char fname[32]

Definition at line 42 of file apps/qres.c.

Referenced by proc_begin().

FILE* fproc = NULL

popen() end kept for iterating over children

Definition at line 41 of file apps/qres.c.

Referenced by proc_begin(), and proc_next().

Generated on Mon Aug 2 22:39:17 2010 for qosres by  doxygen 1.6.3