[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-newbie
Subject:    New inode allocation
From:       Prasad Joshi <prasadjoshi124 () gmail ! com>
Date:       2010-09-21 9:41:05
Message-ID: AANLkTi=8rfHGoVY93kyOdb0qXO9xTFm-1e0xC4a7bo8G () mail ! gmail ! com
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic