New inode allocation

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 [at] 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
Prasad Joshi [ Di, 21 September 2010 11:29 ] [ ID #2047833 ]
Linux » gmane.linux.newbie » New inode allocation

Vorheriges Thema: Manipulating Environment Variables of an Already running process
Nächstes Thema: mmap confusion