summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fdopen.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-10-28 12:34:59 +0000
committermav <mav@FreeBSD.org>2015-10-28 12:34:59 +0000
commit87747aebf2ea04c2c50b6bb4a1746690bd7a64dd (patch)
tree17c9374c8bfa55e2b8ed302e0984e73a822d389f /lib/libc/stdio/fdopen.c
parent51c57514a7cf540be909413d01aa8400b88153f1 (diff)
downloadFreeBSD-src-87747aebf2ea04c2c50b6bb4a1746690bd7a64dd.zip
FreeBSD-src-87747aebf2ea04c2c50b6bb4a1746690bd7a64dd.tar.gz
Improve/fix loop scanning routine.
For the most of chips (except anscient ones) port handlers have no relation to port IDs. In such situation old code scanning first 125 handlers was quite naive. Instead of doing that, send to chip single request to get full list of port handlers available on specific virtual port and scan only them. Old code had problems with case of several virtual ports enabled, when port handlers allocated from global address space could easily go above 125. This change was successfully tested on 23xx, 24xx and 25xx chips in loop mode with 4 virtual initiator ports, each seing 50 virtual target ports.
Diffstat (limited to 'lib/libc/stdio/fdopen.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud