*/voidnetif_poll(struct netif *netif){structpbuf*in;SYS_ARCH_DECL_PROTECT(lev);do{/* Get a packet from the list. With SYS_LIGHTWEIGHT_PROT=1, this is protected */SYS_ARCH_PROTECT(lev); in = netif->loop_first;if(in !=NULL) {structpbuf*in_end=in;#ifLWIP_LOOPBACK_MAX_PBUFSu8_...
SYS_ARCH_DECL_PROTECT(x) - declare a protection state variable. SYS_ARCH_PROTECT(x) - enter protection mode. SYS_ARCH_UNPROTECT(x) - leave protection mode. If the compiler does not provide memset() this file must include a definition of it, or include a file which defines it. This fil...
? ? ? ?SYS_ARCH_DECL_PROTECT(x) - 声明一个保护状态变量? ? ? ? ?SYS_ARCH_PROTECT(x)??? - 进入保护模式? ? ? ? ?SYS_ARCH_UNPROTECT(x)??? - 退出保护模式? ? ?? ? ?如果编译器没提供 menset(),这个文件必需定议这个方法,如者在其它地方定议后包含进此文件。? ? ?文个文件或者包含...