Why use "." in the struct in this way?

lx lxlenovostar at gmail.com
Mon Jul 29 10:56:58 EDT 2013


hi all:
       why use the struct in this way by "."

for example, *.owner* instead of *owner* , why?
Thank you.

1203 <http://lxr.oss.org.cn/source/fs/ext2/super.c?v=2.6.16#L1203>
static struct file_system_type
<http://lxr.oss.org.cn/ident?v=2.6.16;i=file_system_type> ext2_fs_type
<http://lxr.oss.org.cn/ident?v=2.6.16;i=ext2_fs_type> = {1204
<http://lxr.oss.org.cn/source/fs/ext2/super.c?v=2.6.16#L1204>
.owner          = THIS_MODULE
<http://lxr.oss.org.cn/ident?v=2.6.16;i=THIS_MODULE>,1205
<http://lxr.oss.org.cn/source/fs/ext2/super.c?v=2.6.16#L1205>
.name <http://lxr.oss.org.cn/ident?v=2.6.16;i=name>           =
*"ext2"*,1206 <http://lxr.oss.org.cn/source/fs/ext2/super.c?v=2.6.16#L1206>
        .get_sb <http://lxr.oss.org.cn/ident?v=2.6.16;i=get_sb>
 = ext2_get_sb <http://lxr.oss.org.cn/ident?v=2.6.16;i=ext2_get_sb>,1207
<http://lxr.oss.org.cn/source/fs/ext2/super.c?v=2.6.16#L1207>
.kill_sb        = kill_block_super
<http://lxr.oss.org.cn/ident?v=2.6.16;i=kill_block_super>,1208
<http://lxr.oss.org.cn/source/fs/ext2/super.c?v=2.6.16#L1208>
.fs_flags       = FS_REQUIRES_DEV
<http://lxr.oss.org.cn/ident?v=2.6.16;i=FS_REQUIRES_DEV>,1209
<http://lxr.oss.org.cn/source/fs/ext2/super.c?v=2.6.16#L1209> };1210
<http://lxr.oss.org.cn/source/fs/ext2/super.c?v=2.6.16#L1210>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130729/b02d656d/attachment.html 


More information about the Kernelnewbies mailing list