hi all,
while I read the code from linux sources.
I read the statement
static const struct iw_ioctl_descri ption standard_ioctl[] = {
[SIOCSIWCOMMIT - SIOCIWFIRST] = {
.header_type = IW_HEADER_TYPE_ NULL,
},
...
};
I have never read such code. normaly, I will write the code as :
static const struct iw_ioctl_descri ption standard_ioctl[] = {
{
.header_type = IW_HEADER_TYPE_ NULL,
},
...
};
anyone would help me? thanks
while I read the code from linux sources.
I read the statement
static const struct iw_ioctl_descri ption standard_ioctl[] = {
[SIOCSIWCOMMIT - SIOCIWFIRST] = {
.header_type = IW_HEADER_TYPE_ NULL,
},
...
};
I have never read such code. normaly, I will write the code as :
static const struct iw_ioctl_descri ption standard_ioctl[] = {
{
.header_type = IW_HEADER_TYPE_ NULL,
},
...
};
anyone would help me? thanks
Comment