For instance, Transparent Distributed Processing (Qnet) — part of the io-pkt core networking stack — contains resource-manager code that registers the name /proc/qnetstats. If you open this name and read from it, the resource manager code responds with a body of text that describes the statistics for Qnet.
The cat utility takes the name of a file and opens the file, reads from it, and displays whatever it reads to standard output (typically the screen). As a result, you can type:
cat /proc/qnetstats
The Qnet resource manager code responds with text such as:
kif net_server : 0,3 kif waiting : 1,2 kif net_client : 0,1 kif buffer : 0,1 kif outbound_msgs : 0,1 kif vtid : 0,1 kif server_msgs : 0,1 kif nd_down : 42 kif nd_up : 132 kif nd_changed : 3 kif send_acks : 0 kif client_kercalls : 14 kif server_msgs : 202898 kif server_unblock : 0 qos tx_begin_errors : 0 qos tx_done_errors : 0 qos tx_throttled : 0 qos tx_failed : 8 qos pkts_rxd_noL4 : 0 qos tx_conn_created : 43 qos tx_conn_deleted : 41 qos rx_conn_created : 35 qos rx_conn_deleted : 33 qos rx_seq_order : 0