added hand-coded inode-to-process mapping
This commit is contained in:
16
inode2prog.h
Normal file
16
inode2prog.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/* 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();
|
||||
Reference in New Issue
Block a user