Lines Matching refs:inode
128 static struct file_info *add_socket(ino_t inode, const char *type)
133 fi->st_ino = inode;
140 long inode;
143 if (sscanf(line, "%*p: %*X %*X %*X %*X %*X %lu %n", &inode, &path_pos) >= 1) {
144 struct file_info *fi = add_socket(inode, "unix");
154 long inode;
162 if (sscanf(line, "%*p %u %*u %*x %*u %*u %*u %*u %*u %lu", &state, &inode)<2)
165 struct file_info *fi = add_socket(inode, "netlink");
180 long inode;
187 &state, &inode) == 6;
196 &remote_port, &state, &inode) == 12;
200 struct file_info *fi = add_socket(inode, af == 4 ? "IPv4" : "IPv6");
217 static int find_socket(struct file_info *fi, long inode)
236 if (s->st_ino == inode) {
333 long inode;
346 &offset, device, &inode, &name_pos) >= 3) {
348 if (inode == 0 || !strcmp(device, "00:00")) continue;
427 // lsof will only filter on paths it can stat (because it filters by inode).