View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-10-2012, 02:27 AM   #1
LQ Newbie
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
how to use phy_mii_ioctl()

Hello all,

My first post. Thanks in advance.

Can someone point me to usage information for phy_mii_ioctl()? I search the web extensively but can't find much details.

I'm looking to access some special PHY registers through MDIO, and I think phy_mii_ioctl is the best function for me. For learning, I would like to write a very simple standalone app to retrieve a few basic registers (e.g. device-id, link status).

I'm planning to walk through the source codes to understand, but there must be a better way.

thank you.

Old 11-20-2012, 01:03 PM   #2
LQ Newbie
Registered: Nov 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled

Following instructions in

I was able to write a very basic application to read and write to the PHY registers with MDIO.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT -5. The time now is 02:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration