Results 1 to 5 of 5

Thread: find value of a memory location

  1. #1
    Join Date
    Jan 2012
    Beans
    28

    Question find value of a memory location

    hello sir;

    i just wanna know in this command

    sudo setpci -s 00:02.0 F4.B=40

    if i want to read value of location (00:02.0 F4.B)before assigning a new value..

    How could i do this??

  2. #2
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,119
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: find value of a memory location

    man setpci
    There are two kinds of operations: reads and writes. To read a regis‐
    ter, just specify its name. Writes have the form name=value...

  3. #3
    Join Date
    Jan 2012
    Beans
    28

    Re: find value of a memory location

    doesnt help much..

  4. #4
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,119
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: find value of a memory location

    The man page for setpci tells you that if the command to change a value to 40 is
    Code:
    sudo setpci -s 00:02.0 F4.B=40
    Then the command to read the current value is
    Code:
    sudo setpci -s 00:02.0 F4.B
    If this "doesn't help much" then you will need to explain more clearly what you want to do.

  5. #5
    Join Date
    Nov 2008
    Location
    Maine
    Beans
    1,125
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: find value of a memory location

    lol I found the man page to not be too easy to read. searching "/read" in vim gave me nothing useful.
    Anyhow i found this thread helpful!
    ~Conradin~

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •