--- layout: default title: usr/share/doc/sysbox/html/tool/svcinfo.html --- Sysbox: svcinfo

Sysbox: svcinfo

Usage: svcinfo DEVNAME...
or: svcinfo -s DEVNAME SVCNAME...

Print servicecall information about a device. Note that all device have servicecalls. The first requirement to a device to have servicecalls is to implement the DCLS_SERVICE device class.

Conjunction with svccall can be very useful.

Options:

Examples:

$ svcinfo vfs tcpip                 
Services in "vfs":
    service #0, "unlink": 1 arg, 0 rets
        arg #0: "filename", string
    service #1, "remove": 1 arg, 0 rets
        arg #0: "pathname", string
    service #2, "rename": 2 args, 0 rets
        arg #0: "oldname", string
        arg #1: "newname", string
    service #3, "getcaps": 0 args, 2 rets
        ret #0: "max_path_length", integer
        ret #1: "max_open_fds", integer
    service #4, "mkdir": 2 args, 0 rets
        arg #0: "dir", string
        arg #1: "attr", integer
    service #5, "mknod": 3 args, 0 rets
        arg #0: "path", string
        arg #1: "mode", integer
        arg #2: "dev", integer
    service #6, "chdir": 1 arg, 0 rets
        arg #0: "dir", string
    service #7, "rmdir": 1 arg, 0 rets
        arg #0: "dir", string
...
    service #14, "compdev": 2 args, 1 ret
        arg #0: "dev_name", string
        arg #1: "dev_unit", integer
        ret #0: "dev", integer

Services in "tcpip":
    service #0, "niadd": 4 args, 0 rets
        arg #0: "niname", string
        arg #1: "device_name", string
        arg #2: "device_unit", integer
        arg #3: "hwtype", integer
...
    service #9, "addproto": 1 arg, 0 rets
        arg #0: "prtab_name", string
$
$ svcinfo vfs -s getcaps mkdir rmdir
    service "getcaps": 0 args, 2 rets
        ret #0: "max_path_length", integer
        ret #1: "max_open_fds", integer
    service "mkdir": 2 args, 0 rets
        arg #0: "dir", string
        arg #1: "attr", integer
    service "rmdir": 1 arg, 0 rets
        arg #0: "dir", string
$
$ svccall vfs getcaps
max_path_length: 2048
max_open_fds: 1024
$