If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since september. Please use hippie2000@webnmail.de instead.

0
U

Property:bb shm manager (avmcmd)

From BoxMatrix


BoxMatrix >> Shell-Commands >> bb_shm_manager (avmcmd) @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Gallery

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

Info
  
Name-Collision - multiple objects in this wiki use the name bb_shm_manager!
bb_shm_manager (avmcmd) TODO
bb_shm_manager (evsink) Event-Sink of bb_shm_manager
bb_shm_manager (process) TODO
bb_shm_manager (watchdog) TODO

AVM-Command

Goto:   Examples  -  Endpoints  -  Events  -  Source  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

bb_shm_manager is the Broadband shared memory manager.

It is used for DSL, Fiber and DOCSIS, which all use sybsystems with own processors for their respective access technology.
For efficient Inter-CPU data transfer shared memory is used which is accessible from both sides.

bb_shm_manager provides an interface for accessing this memory for diagnostic purposes, mainly by aicmd.

fw 7.39 help:

root@fritz:/var/mod/root# bb_shm_manager -h

Usage: bb_shm_manager [-D]

  -D   Run as a daemon

Examples

Endpoints

aicmd endpoint(s) provided by bb_shm_manager, with these functions: (fw 7.39)

root@fritz:/var/mod/root# aicmd bb_shm_manager

# provided by bb_shm_manager: - fw 7.39+

HELP                                     - show help
SLABDUMP                                 - show slab allocation
SLABSHOW                                 - show slab information
QUIT                                     - disconnect

get_overview_info                        - lua overview info
get_fiber_optic                          - get fiber optic info
get_arch_info                            - get basic info from arch
get_fiber_equipment                      - get fiber equipment info
get_fiber_base_info                      - get fiber base info
get_fiber_pon                            - get fiber pon info
get_fiber_week_per_hour                  - get fiber stats week per hour
get_fiber_iop_settings                   - get fiber iop settings from arch # OR:
get_iop_settings                         - get iop settings from arch
get_fiber_day_per_10minutes              - get fiber stats day per 10 minutes
get_fiber_stats_total                    - get fiber stats total
get_fiber_ext_vlan_rules                 - get fiber extended vlan rules
get_cable_spectrum                       - get cable spectrum
get_advised_or_expected_values           - get dsl smart and dsl dr values
get_dsl_atm_stats                        - get dsl atm stats
get_dsl_dslam_infos                      - get dsl dsl infos

file get_fiber_diag                      - get bzip2-packed fiber diagnoses file
file get_pon_img                         - get pon image file
file get_dsl_diag                        - get bzip2-packed dsl diagnoses file
bb_booked_datarate                       - set booked datarate
dsl_port_independent_info                - get all port independent infos of dsl
supportdata get                          - get supportdata

# provided by libewnwlinux.so: - fw 7.01+

ewnwlinux show csockshell                - show shells running
ewnwlinux show genetlink                 - show gerneric netlink families

# provided by libavmcsock.so: - fw 7.01+

avmcsock show csock                      - show all csock
avmcsock show dnsconfig                  - show all dns context
avmcsock show timercb                    - show all timer
avmcsock show debughandles               - show all debughandles
avmcsock show cprocess                   - show all processes
avmcsock set debug                       - set debug flags

# provided by libavmcsock.so: - fw 7.29+

avmcsock show cbcontext                  - show all cbdata
avmcsock show daemon                     - show daemon status
avmcsock show cbuf                       - show cbuf status

# provided by libavmcsock.so: - fw 7.39+

avmcsock getsymbol <address>             - get symbol for address
avmcsock show dnsglobal                  - show all dns global values
avmcsock show dnscache                   - show cache
avmcsock show dnsqueries                 - show all pending queries
avmcsock show avmipc [endpoint shmatch]  - show avmipc events and states
avmcsock ctimer show                     - show all timer
avmcsock ctimer overview                 - show ctimer overview
avmcsock iotrace format unctrl|hexdump   - set format for csock iotrace
avmcsock iotrace file                    - enable iotrace to file
avmcsock iotrace enable                  - enable iotrace via debugmsg
avmcsock iotrace disable                 - disable iotrace
avmcsock iotrace match help|<match>      - show allowed matches or set match
avmcsock iotrace reset                   - remove all matches
avmcsock iotrace show                    - show configuration

Events

Daily updated index of AVM-Events and AVMIPC-Datastore nodes affecting this command. Last update: 2023-02-09 06:36 GMT.
The owners of Event-Sinks and Event-Sources are manual research, which may be incomplete or even wrong.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.
A ** in the Mod column marks info from Supportdata2 probes, which by their nature will stay way more incomplete.
A - in the Mod column marks manual research, the Firmware then shows where the item occurs, not the Relation.

Relation Typ Object Mod Firmware Info Origin
Sink evsink bb_shm_manager (evsink) 5* 7.39 - 7.51 Event-Sink of bb_shm_manager AVM
Receives event dsl_status 5* 7.39 - 7.51 Broadband modem sync details AVM
Sink evsink bb_shm_manager_dsl 3* 7.27 - 7.39 Event-Sink of bb_shm_manager AVM
Receives event dsl_status 3* 7.27 - 7.39 Broadband modem sync details AVM
Sink evsink bb_shm_manager_fiber 1* 7.27 - 7.30 Event-Sink of bb_shm_manager AVM
Receives event dsl_status 1* 7.27 - 7.30 Broadband modem sync details AVM
Endpoint sock me_bb_shm_manager.ctl 6* 7.27 - 7.51 avmipc_command endpoint of bb_shm_manager AVM
Listens to avmipc aicmd_listener 5** 7.39 - 7.51 Special event covering all aicmd compatible listeners. AVM
8 event relations for this command

The bb_shm_manager_dsl and bb_shm_manager_fiber sinks have been united since 7.39-96976 to the bb_shm_manager sink.

Source

The names of source files compiled into an executable often help to understand function blocks (and show gaps in the docs).
fw 7.39 source files:

$ strings /usr/sbin/bb_shm_manager | grep -e '\.c$' -e '\.cpp$'

<empty>  

Dependencies

Daily updated index of all dependencies of this command. Last update: 2023-02-09 07:15 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Started by serv bb_shm_manager.service 15 7.39 - 7.51 supervisor service for bb_shm_manager. AVM
Runs as proc bb_shm_manager (process) 6* 7.27 - 7.51 BroadBand shared memory manager. AVM
Registers wdog bb_shm_manager (watchdog) 6* 7.27 - 7.51 BroadBand shared memory manager. AVM
Serving sock me_bb_shm_manager.ctl 6* 7.27 - 7.51 avmipc_command endpoint of bb_shm_manager AVM
Depends on lib ld.so 5 7.39 - 7.51 Dynamic linker / loader Linux
Depends on lib lib_bb_serialize.so 18 7.27 - 7.51 Structures for Brodband messages AVM
Depends on lib libatomic.so 18 7.39 - 7.51 GNU atomic library Linux
Depends on lib libavm_event.so 18 7.27 - 7.51 AVM-Events management API AVM
Depends on lib libavmcsock.so 18 7.27 - 7.51 Networking, I/O and helper functions AVM
Depends on lib libbacktrace.so 18 7.27 - 7.51 Crash handler and logger AVM
Depends on lib libbb.so 18 7.27 - 7.51 Broadband connection information helpers AVM
Depends on lib libboxlib.so 11 7.27 - 7.39 Box status, logging and statistics functions AVM
Depends on lib libc.so 18 7.27 - 7.51 Standard C library Linux
Depends on lib libdslsmiface.so 18 7.27 - 7.51 DSL subsystem shared memory API AVM
Depends on lib libdslutils.so 18 7.27 - 7.51 Broadband frontend information helpers AVM
Depends on lib libewnwlinux.so 18 7.27 - 7.51 Linux networking functions AVM
Depends on lib libgcc_s.so 18 7.27 - 7.51 GCC low-level runtime library Linux
Depends on lib libm.so 4 7.39 - 7.50 C math library Linux
Depends on lib libminneapolis.so 3 7.27 - 7.30 Minneapolis datastore encoder / decoder AVM
Depends on lib libpthread.so 4 7.39 - 7.50 POSIX threading library Linux
Depends on lib libstdc++.so 18 7.27 - 7.51 GNU C++ library Linux
Depends on lib libwdt.so 18 7.27 - 7.51 AVM-Watchdogs management API AVM
22 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2023-02-09 05:52 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box 5530 Fiber (prx) 7.27 - 7.39 /usr/sbin 56.5k - 112k
FRITZ!Box 5530 Fiber (main) 7.29 /usr/sbin 64.9k
FRITZ!Box 5590 Fiber (arm) 7.27 - 7.39 /usr/sbin 56.5k - 112k
FRITZ!Box 5590 Fiber (prx) 7.27 - 7.39 /usr/sbin 56.5k - 112k
FRITZ!Box 6591 Cable (arm) 7.39 /usr/sbin 42.3k - 70.6k
FRITZ!Box 6660 Cable (arm) 7.39 /usr/sbin 42.3k - 70.6k
FRITZ!Box 6690 Cable (arm) 7.39 - 7.50 /usr/sbin 54.4k - 70.6k
FRITZ!Box 6850 LTE 7.39 /usr/sbin 108k
FRITZ!Box 6890 LTE 7.39 /usr/sbin 56.5k - 108k
FRITZ!Box 6890 LTE v1 7.39 /usr/sbin 56.5k - 108k
FRITZ!Box 6890 LTE v2 7.39 /usr/sbin 56.5k - 108k
FRITZ!Box 7490 (main) 7.39 - 7.51 /usr/sbin 100k
FRITZ!Box 7510 7.39 /usr/sbin 78.0k
FRITZ!Box 7520 7.39 - 7.50 /usr/sbin 78.0k
FRITZ!Box 7520 v2 (arm) 7.39 - 7.50 /usr/sbin 78.0k
FRITZ!Box 7530 7.39 - 7.51 /usr/sbin 37.7k - 78.0k
FRITZ!Box 7530 AX 7.39 /usr/sbin 57.8k - 78.0k
FRITZ!Box 7590 7.39 - 7.51 /usr/sbin 56.5k - 112k
FRITZ!Box 7590 AX 7.39 /usr/sbin 56.5k - 112k
19 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2023-02-09 07:15 GMT.

Firmware Symbol
7.39 - 7.51 bsm::Bsm::Bsm
7.39 - 7.51 bsm::Bsm::avm_event_csock_read
7.39 - 7.51 bsm::Bsm::avm_event_listener_thread
7.27 - 7.51 bsm::Bsm::bsm_copy_data_from_shm
7.39 - 7.51 bsm::Bsm::csock_close_cb
7.39 - 7.51 bsm::Bsm::csock_read_cb
7.39 - 7.51 bsm::Bsm::do_update_shared_memory
7.39 - 7.51 bsm::Bsm::get_dsl_shm
7.39 - 7.51 bsm::Bsm::get_fiber_shm
7.27 - 7.51 bsm::Bsm::on_exit
7.39 - 7.51 bsm::Bsm::on_init
7.39 - 7.51 bsm::Bsm::run
7.27 - 7.51 bsm::Bsm::usage
7.27 - 7.51 bsm::Bsm::~Bsm
7.39 - 7.51 int bsm::Bsm::copy_data_to_shm<_sBB_DSL_STATUS_BOOKED_DATARATE>
7.27 - 7.51 main
7.27 - 7.51 shm_mgr::ShmWrapper::ShmWrapper
7.39 - 7.51 shm_mgr::ShmWrapper::get_last_request_ts
7.27 - 7.51 shm_mgr::ShmWrapper::get_shm
7.39 - 7.51 shm_mgr::ShmWrapper::is_update_needed
7.27 - 7.39 shm_mgr::ShmWrapper::poll_triggered_event_response
7.27 - 7.39 shm_mgr::ShmWrapper::update
7.27 - 7.51 shm_mgr::ShmWrapper::~ShmWrapper
23 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.