New inode allocation

Prasad Joshi <[email protected]>
Newsgroups gmane.linux.newbie
Message-ID <[email protected]>
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.