Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プログラムでユーザー空間から pci デバイス ツリー情報にアクセスしたいと考えています。ルート コンプレックスとそれに接続されているデバイスのように。どうすればよいか教えてください。
よろしく、 プラディープ
コマンドラインから lspci -tv コマンドを使用してみてください。しかし、私が理解している限り、このコマンドは /proc を解析するだけです... プログラムからタスクを実行する必要がある場合は、lspci ソース コードを参照してください。