Re: question about create function of inode_operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 13 January 2008, Manish Katiyar wrote:
> Hi friends,
>

Hi Manish,

> 1) When is d_instantiate needed. Is it required always ?? . As far as
> i understand it attaches the inode to the dentry object and may not be
> needed always.

AFAIK you need to call insert_inode_hash for every inode you create and 
d_instantiate whenever you create a new file or directory.

> 2) Once I have got the new inode * by a call to new_inode, how do I
> fill my file system specific data.. ie... i_private member is
> initialised as NULL.
>      Should I allocate memory for my inode and set i_private to it
> ??........
>

Yes.

Regards,
tavi


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux