How to get node property in the /sys device model

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have an entry (end node) in the device model -  /sys/class/scsi_host/host2/scan.  It is writable.   However, when I try to write to it some character that I figured might be valid, I get an error:

# echo 1 > /sys/class/scsi_host/host2/scan
bash: echo: write error: Invalid argument
# echo "1" > /sys/class/scsi_host/host2/scan
bash: echo: write error: Invalid argument
# echo "y" > /sys/class/scsi_host/host2/scan
bash: echo: write error: Invalid argument

Is there a way to find out the property / info about this node - "scan", e.g a text string as to what it does, and what valid values that can be written to it.

Thank you,
Ahmed.



      

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux