On Tue, 28 Apr 2015 00:58:47 -0000, cmqycmqy said:
> (Again, depending I just want to print process info whitch have open a
> specific file£¨inode£©. Then if i want to delete a file in use,i can just kill
> the process one by one.

No kernel hacking needed for that, you can do it in userspace.

# lsof | grep /your/file/here
# kill -9 ` lsof | grep /your/file/here | awk '{print $2} |uniq '`

Attachment: pgpXOYGER8q9G.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to