Re: [PATCH net-next v7 2/5] rust: net::phy add module_phy_driver macro
From: FUJITA Tomonori <fujita.tomonori@gmail.com>
Date: 2023-11-21 00:50:00
Also in:
rust-for-linux
From: FUJITA Tomonori <fujita.tomonori@gmail.com>
Date: 2023-11-21 00:50:00
Also in:
rust-for-linux
On Mon, 20 Nov 2023 15:13:23 +0100 Andrew Lunn [off-list ref] wrote:
quoted
The Rust ax88796b driver doesn't export anything. The Rust and C drivers handle the device_table in the same way when they are built as a module. $ grep __mod_mdio /proc/kallsyms ffffffffa0358058 r __mod_mdio__phydev_device_table [ax88796b_rust] $ grep __mod_mdio /proc/kallsyms ffffffffa0288010 d __mod_mdio__asix_tbl_device_table [ax88796b]I checked what r and d mean. If they are upper case, they are exported. Lower case means they are not exported. My laptop is using the realtek PHY driver: 0000000000000000 r __mod_mdio__realtek_tbl_device_table [realtek] Also lower r. Looking at all the symbols for the realtek driver, all the symbols use lower case. Nothing is exported. Is that what you see for the ax88796b_rust?
Yes, all the symbols for ax88796b_rust use lower case.