Coder Social home page Coder Social logo

talosctl lspci about talos HOT 1 CLOSED

rothgar avatar rothgar commented on June 27, 2024 3
talosctl lspci

from talos.

Comments (1)

smira avatar smira commented on June 27, 2024

It should probably a PCIDevice resource and the command will be talosctl get pcidevices.

PCI devices are completely readable via sysfs: https://unix.stackexchange.com/questions/103269/where-does-lspci-gather-its-information-from

openat(AT_FDCWD, "/sys/bus/pci/devices", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
getdents64(3, 0x604153ae25f0 /* 46 entries */, 32768) = 1456
getdents64(3, 0x604153ae25f0 /* 0 entries */, 32768) = 0
close(3)                                = 0
openat(AT_FDCWD, "/sys/bus/pci/devices/0000:00:18.5/config", O_RDONLY) = 3
pread64(3, "\"\20E\24\0\0\0\0\0\0\0\6\0\0\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64, 0) = 64
openat(AT_FDCWD, "/sys/bus/pci/devices/0000:00:18.5/vendor", O_RDONLY) = 4
read(4, "0x1022\n", 1024)               = 7
close(4)                                = 0
openat(AT_FDCWD, "/sys/bus/pci/devices/0000:00:18.5/device", O_RDONLY) = 4
read(4, "0x1445\n", 1024)               = 7
close(4)                                = 0
openat(AT_FDCWD, "/sys/bus/pci/devices/0000:00:18.5/class", O_RDONLY) = 4
read(4, "0x060000\n", 1024)             = 9
close(4)                                = 0
openat(AT_FDCWD, "/sys/bus/pci/devices/0000:00:18.5/revision", O_RDONLY) = 4
read(4, "0x00\n", 1024)                 = 5
close(4)                                = 0
openat(AT_FDCWD, "/sys/bus/pci/devices/0000:00:18.5/subsystem_vendor", O_RDONLY) = 4
read(4, "0x0000\n", 1024)               = 7
close(4)                                = 0
openat(AT_FDCWD, "/sys/bus/pci/devices/0000:00:18.5/subsystem_device", O_RDONLY) = 4
read(4, "0x0000\n", 1024)               = 7
close(4)                                = 0
close(3)                                = 0

Plus we have https://github.com/siderolabs/go-pcidb

from talos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.