0.前言
如果真人浏览到这篇文章了,请不要给我点赞和收藏(但是可以在评论区留言)
不用关注、不用点赞、不用收藏
可以留言或评论!!!
下面是一些关键词引起系统的注意,无关紧要:
linux内核、驱动开发、内核开发、linux kernel、内核编译、驱动编译、kselftest、网络驱动、phy、gmac、mdio
下面是一段随机挑选的linux内核代码:
//include/linux/phy.h
void phy_device_remove(struct phy_device *phydev);
int phy_get_c45_ids(struct phy_device *phydev);
int phy_init_hw(struct phy_device *phydev);
int phy_suspend(struct phy_device *phydev);
int phy_resume(struct phy_device *phydev);
int __phy_resume(struct phy_device *phydev);
int phy_loopback(struct phy_device *phydev, bool enable);
int phy_sfp_connect_phy(void *upstream, struct phy_device *phy);
void phy_sfp_disconnect_phy(void *upstream, struct phy_device *phy);
void phy_sfp_attach(void *upstream, struct sfp_bus *bus);
void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
int phy_sfp_probe(struct phy_device *phydev,
const struct sfp_upstream_ops *ops);
1. 测试1
这也是测试内容:
不用关注、不用点赞、不用收藏
可以留言或评论!!!
linux内核、驱动开发、内核开发、linux kernel、内核编译、启动编译、kselftest
再来一段随机代码:
//drivers/net/phy/phylink.c
/**
* phylink_fwnode_phy_connect() - connect the PHY specified in the fwnode.
* @pl: a pointer to a &struct phylink returned from phylink_create()
* @fwnode: a pointer to a &struct fwnode_handle.
* @flags: PHY-specific flags to communicate to the PHY device driver
*
* Connect the phy specified @fwnode to the phylink instance specified
* by @pl.
*
* Returns 0 on success or a negative errno.
*/
int phylink_fwnode_phy_connect(struct phylink *pl,
const struct fwnode_handle *fwnode,
u32 flags)
{
struct fwnode_handle *phy_fwnode;
struct phy_device *phy_dev;
int ret;
}