这篇教程C++ to_bridge函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中to_bridge函数的典型用法代码示例。如果您正苦于以下问题:C++ to_bridge函数的具体用法?C++ to_bridge怎么用?C++ to_bridge使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了to_bridge函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: show_topology_changestatic ssize_t show_topology_change(struct device *d, struct device_attribute *attr, char *buf){ return sprintf(buf, "%d/n", to_bridge(d)->topology_change);}
开发者ID:458941968,项目名称:mini2440-kernel-2.6.29,代码行数:5,
示例2: show_ageing_timestatic ssize_t show_ageing_time(struct class_device *cd, char *buf){ struct net_bridge *br = to_bridge(cd); return sprintf(buf, "%lu/n", jiffies_to_clock_t(br->ageing_time));}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:5,
示例3: show_stp_statestatic ssize_t show_stp_state(struct device *d, struct device_attribute *attr, char *buf){ struct net_bridge *br = to_bridge(d); return sprintf(buf, "%d/n", br->stp_enabled);}
开发者ID:458941968,项目名称:mini2440-kernel-2.6.29,代码行数:6,
示例4: show_bridge_idstatic ssize_t show_bridge_id(struct device *d, struct device_attribute *attr, char *buf){ return br_show_bridge_id(buf, &to_bridge(d)->bridge_id);}
开发者ID:458941968,项目名称:mini2440-kernel-2.6.29,代码行数:5,
示例5: hello_time_showstatic ssize_t hello_time_show(struct device *d, struct device_attribute *attr, char *buf){ return sprintf(buf, "%lu/n", jiffies_to_clock_t(to_bridge(d)->hello_time));}
开发者ID:7799,项目名称:linux,代码行数:6,
示例6: show_max_agestatic ssize_t show_max_age(struct device *d, struct device_attribute *attr, char *buf){ return sprintf(buf, "%lu/n", jiffies_to_clock_t(to_bridge(d)->max_age));}
开发者ID:458941968,项目名称:mini2440-kernel-2.6.29,代码行数:6,
示例7: show_topology_changestatic ssize_t show_topology_change(struct class_device *cd, char *buf){ return sprintf(buf, "%d/n", to_bridge(cd)->topology_change);}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:4,
示例8: multicast_startup_query_count_showstatic ssize_t multicast_startup_query_count_show( struct device *d, struct device_attribute *attr, char *buf){ struct net_bridge *br = to_bridge(d); return sprintf(buf, "%u/n", br->multicast_startup_query_count);}
开发者ID:7799,项目名称:linux,代码行数:6,
示例9: show_bridge_idstatic ssize_t show_bridge_id(struct class_device *cd, char *buf){ return br_show_bridge_id(buf, &to_bridge(cd)->bridge_id);}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:4,
示例10: show_root_path_coststatic ssize_t show_root_path_cost(struct class_device *cd, char *buf){ return sprintf(buf, "%d/n", to_bridge(cd)->root_path_cost);}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:4,
示例11: show_root_idstatic ssize_t show_root_id(struct class_device *cd, char *buf){ return br_show_bridge_id(buf, &to_bridge(cd)->designated_root);}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:4,
示例12: show_prioritystatic ssize_t show_priority(struct class_device *cd, char *buf){ struct net_bridge *br = to_bridge(cd); return sprintf(buf, "%d/n", (br->bridge_id.prio[0] << 8) | br->bridge_id.prio[1]);}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:6,
示例13: show_stp_statestatic ssize_t show_stp_state(struct class_device *cd, char *buf){ struct net_bridge *br = to_bridge(cd); return sprintf(buf, "%d/n", br->stp_enabled);}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:5,
示例14: multicast_router_showstatic ssize_t multicast_router_show(struct device *d, struct device_attribute *attr, char *buf){ struct net_bridge *br = to_bridge(d); return sprintf(buf, "%d/n", br->multicast_router);}
开发者ID:7799,项目名称:linux,代码行数:6,
示例15: show_topology_change_detectedstatic ssize_t show_topology_change_detected(struct class_device *cd, char *buf){ struct net_bridge *br = to_bridge(cd); return sprintf(buf, "%d/n", br->topology_change_detected);}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:5,
示例16: hash_max_showstatic ssize_t hash_max_show(struct device *d, struct device_attribute *attr, char *buf){ struct net_bridge *br = to_bridge(d); return sprintf(buf, "%u/n", br->hash_max);}
开发者ID:7799,项目名称:linux,代码行数:6,
示例17: show_gc_timerstatic ssize_t show_gc_timer(struct class_device *cd, char *buf){ struct net_bridge *br = to_bridge(cd); return sprintf(buf, "%ld/n", br_timer_value(&br->gc_timer));}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:5,
示例18: forward_delay_showstatic ssize_t forward_delay_show(struct device *d, struct device_attribute *attr, char *buf){ struct net_bridge *br = to_bridge(d); return sprintf(buf, "%lu/n", jiffies_to_clock_t(br->forward_delay));}
开发者ID:7799,项目名称:linux,代码行数:6,
示例19: show_forward_delaystatic ssize_t show_forward_delay(struct class_device *cd, char *buf){ struct net_bridge *br = to_bridge(cd); return sprintf(buf, "%lu/n", jiffies_to_clock_t(br->forward_delay));}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:5,
示例20: nf_call_arptables_showstatic ssize_t nf_call_arptables_show( struct device *d, struct device_attribute *attr, char *buf){ struct net_bridge *br = to_bridge(d); return sprintf(buf, "%u/n", br->nf_call_arptables);}
开发者ID:7799,项目名称:linux,代码行数:6,
示例21: show_max_agestatic ssize_t show_max_age(struct class_device *cd, char *buf){ return sprintf(buf, "%lu/n", jiffies_to_clock_t(to_bridge(cd)->max_age));}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:5,
示例22: show_ageing_timestatic ssize_t show_ageing_time(struct device *d, struct device_attribute *attr, char *buf){ struct net_bridge *br = to_bridge(d); return sprintf(buf, "%lu/n", jiffies_to_clock_t(br->ageing_time));}
开发者ID:458941968,项目名称:mini2440-kernel-2.6.29,代码行数:6,
示例23: show_group_fwd_maskstatic ssize_t show_group_fwd_mask(struct device *d, struct device_attribute *attr, char *buf){ struct net_bridge *br = to_bridge(d); return sprintf(buf, "%#x/n", br->group_fwd_mask);}
开发者ID:Cool-Joe,项目名称:imx23-audio,代码行数:6,
示例24: show_root_idstatic ssize_t show_root_id(struct device *d, struct device_attribute *attr, char *buf){ return br_show_bridge_id(buf, &to_bridge(d)->designated_root);}
开发者ID:458941968,项目名称:mini2440-kernel-2.6.29,代码行数:5,
示例25: show_hash_elasticitystatic ssize_t show_hash_elasticity(struct device *d, struct device_attribute *attr, char *buf){ struct net_bridge *br = to_bridge(d); return sprintf(buf, "%u/n", br->hash_elasticity);}
开发者ID:Cool-Joe,项目名称:imx23-audio,代码行数:6,
示例26: show_root_path_coststatic ssize_t show_root_path_cost(struct device *d, struct device_attribute *attr, char *buf){ return sprintf(buf, "%d/n", to_bridge(d)->root_path_cost);}
开发者ID:458941968,项目名称:mini2440-kernel-2.6.29,代码行数:5,
示例27: root_port_showstatic ssize_t root_port_show(struct device *d, struct device_attribute *attr, char *buf){ return sprintf(buf, "%d/n", to_bridge(d)->root_port);}
开发者ID:7799,项目名称:linux,代码行数:5,
示例28: show_tcn_timerstatic ssize_t show_tcn_timer(struct device *d, struct device_attribute *attr, char *buf){ struct net_bridge *br = to_bridge(d); return sprintf(buf, "%ld/n", br_timer_value(&br->tcn_timer));}
开发者ID:458941968,项目名称:mini2440-kernel-2.6.29,代码行数:6,
注:本文中的to_bridge函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ to_ccwgroupdev函数代码示例 C++ to_array_type函数代码示例 |