File: inode2prog.h

package info (click to toggle)
nethogs 0.8.0-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 272 kB
  • ctags: 336
  • sloc: cpp: 2,161; ansic: 267; makefile: 94
file content (19 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* this should be called quickly after the packet
 * arrived, since the inode may disappear from the table
 * quickly, too :) */

#include "nethogs.h"
// #define PROGNAME_WIDTH 200

struct prg_node {
    long inode;
    int pid;
    char name[PROGNAME_WIDTH];
};

struct prg_node * findPID (unsigned long inode);

void prg_cache_clear();
 
// reread the inode-to-prg_node-mapping
void reread_mapping ();