New inode allocation

New inode allocation

am 21.09.2010 11:29:05 von Prasad Joshi

Hi All,

I am bit confused with the use of iget_locked() and new_inode().

I am implementing mknod operations, which function should I use to
allocate a new inode?
Do I need to ensure each inode allocated has state I_NEW?
When should I use new_inode() and when to use iget_locked()?

Please advise?

Thanks and Regards,
Prasad
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs