亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? documentation

?? fsmlabs的real time linux的內核
??
字號:
RTSOCKWritten by Robert Kavaler (kavaler@innomedia.com)Copyright (C) 1998-2002, Innomedia, Inc.All rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions aremet: Redistributions of source code must retain the above copyrightnotice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the abovecopyright notice, this list of conditions and the followingdisclaimer in the documentation and/or other materialsprovided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERSAND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIEDWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDWARRANTIES OF MERCHANTABILITY AND FITNESS FOR APARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALLTHE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FORANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITEDTO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE, DATA, OR PROFITS; OR BUSINESSINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OFLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAYOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFTHE POSSIBILITY OF SUCH DAMAGE.Update 7/20/02Rtsock now support rtlinux 3.1 and the 2.4.4 linux kernel.Update 6/17/02Added test/example code.  See test directory for details.Added new ioctl RTSOCK_IOCINTERFACE to interface to avoid passing opaque kernel pointer through user task.RTSOCK_IOCINTERFACE:  This interface replaces the RTSOCK_IOCGETSOCKADDRinterface.  To use the interface, each rtsock has a callback that will becalled when the RTSOCK_IOCINTERFACE ioctl call is made.  The callback has threeparameters: an opaque pointer passed with the callback register, a pointerto referenced linux "struct sock" and the args passed to the ioctl.  The firstarg is always the local file descriptor (i.e. fd integer) for the socket.This interface, therefore, allows the rtsock user to make an association between any user task data (i.e. parameters) and the underlying socket structure.  See the example for more information.Update 8/23/00Rtsock now supports 2.4 kernelsInitial Release 1/20/00Rtsock is an RTLinux interface to the Linux socket world.  Rtsock is not adevice driver for network cards.  Instead, packets flow through the Linux kernel using the standard Linux drivers, up/down the standard layer 2 and layer 3 protocols, and then packets are diverted into an RTLinux task.  Currently only UDP sockets are supported.The advantage of this approach over implementing a real-time ethernet driver is that all of the standard L2 and L3 protocols already implemented in the kernel are available to the real-time task.  Thus, all Linux routing protocols, ifconfigs, ARP, RARP, QoS, netfiltering and other packet level processes are applied to the real-time socket.  Of course, the disadvantage is that the delay through the Linux kernel is not fixed and therefore the packets generated in the real-time kernel will not come out of the kernel in "real-time" (i.e. with low jitter).  Thenagain, ethernet itself is not a low jitter medium.The RT interface to rtsock uses the standard Linux socket calls in user space and a non-standard interface in RT space.The API works as follows (this is an overview):Initialization:1.  The rtsock driver is loaded with modprobe or insmod.  It needs a mknod'd device (/dev/rtsock0-5) to communicate between the usertasks and the realtime tasks. 2.  The RT task wishing to use rtsock is loaded with modprobe or insmodand during initialization it must call rtsock_create with the minor device number (X) and other parameters. Each minor device (rtsock currently supports up to 6 minor devices) corresponds to a "pool" of sockets that are to be handled by a single RT "dequeue_skb" call.  Each pool also has a setof fixed length skb's that are allocated at initialization and replenished asthey are used.  The parameters fromRTmax_count and toRTmax_count define the size of the queues used to communicate between linux and rtlinux.  Themain constraint is that (fromRT + toRT) < 32000 (assuming max linux kmalloc is128K bytes).  The skbLength specified in the rtsock_create call is the lengthof layers 5 and above; an additional 16 + 60 + 8 bytes are included for layers2, 3 and 4 respectively.2. The user task opens "/dev/rtsockX" (fd).  This device is used to perform ioctls to manipulate sockets.  (Implementation note: the ioctls could have been added to the sockets themselves, but this would require modifying the kernel.)  The minor device number (X) forms the link between the usertask and the RT task.Next, on a per socket basis:1.  The user task creates a socket (s) and binds the socket as usual.  Eventhough only UDP packets are supported, currently the user must "connect" thesocket to the far end for rtsock to work.  Packets can be sent and receivedusing the standard Linux socket prior to and after redirecting the socketto rtsock.  These Linux packets can be sent using "sendto".2.  When the user task wishes to redirect the packet sequence tortsock it uses the sequence	long s1, s;	s1 = s; 	ioctl(fd, RTSOCK_IOCGETSOCKADDR, &s1);which returns a pointer (s1) that should be passed into the RT task.  Howthe pointer s1 gets to the RT task is not dealt with by rtsock.  Normally,RT tasks have a command queue that is processed by the RT task, and it is assumed that s1 will be passed using some command in that queue.3.  The RT task MUST reference count the socket pointer (s1) usingrtsock_reference_sock.  4.  The RT task can now allocate skb's using rtsock_alloc_skb, and send those skb's via the socket (s1) using rtsock_enqueue_skb.5.  The user task calls ioctl(fd, RTSOCK_IOCREDIRECTFD, &s) to redirect inputpackets to the rtsock.6.  The RT task can now receive packets from the rtsock using rtsock_dequeue_skb.  Rtsock_dequeue_skb actually receives ALL of the packetsfor a given rtsock (which may be multiple sockets).  In order to speedthe lookup of the socket pointer, the user_data field of the struct sockis modified by the real-time task to point to an internal data structure.7.  When done with a sock, the RT task must deferenece the socket (s1)using rtsock_dereference_sock.8.  The user task should close the socket (s1) only AFTER the socket is longerneeded by the RT task.9.  The user task can redirect the input packets back to the user task using ioctl(fd, RTSOCK_IOCRESETFD, &s).10.  Since ICMP messages are not redirected to the RT task, they are processedby the Linux stack and therefore the user task will receive the errors fora socket.  THIS IS A GOOD THING, as it allows the linux task to "manage" the socket and the RT task handle only the real-time packets.Manipulating packets in the RT task:An RT task can use the standard Linux "skb_put" call and similar calls tomanipulate/create packets. However, caution should taken to never underflowor overflow the skb.  Underflow and overflow will cause the RT task to callkmalloc to grow the packet, and that will in turn cause unpredicatable performance (and maybe crashing).  Thus the "__skb_put" version of the packetmanipulation routines should be used.Before an skb can be sent with "rsock_enqueue_sock" it must first be givenan "owner sock" using "skb_set_owner_w".  The owner sock is thesock onto which the skb is queued.Limitations:* Currently only UDP sockets can use the rtsock interface.* UDP packets are sent to the connected destination port only -- there is no equivalent to sendmsg.Applications for the rtsock interface:The main application for the rtsock interface is in situations that require real-time generation or consumption of standard UDP packets in an otherwiseasynchronous network.  One example is a time-tick that must be generated at a fixed rate to a large group of machines.  Another is for RTP sessions in a VoIP application, when the generator/consumer is a DSP or Video card runningwith a constant clock, but the network side is a standard ethernet.  In this case, a "jitter buffer" must be implemented in the real-time task.Installation:1. Unfortunately, in order to use rtsock the kernel must be patched minimally.A patch file is included for 2.2.14 and 2.4.0.  The patch is very simple:it exports one symbol.  2. Change the first line of the Makefile to reflect the proper location of the rtlinux source code for your system.  Then run "make" in this directory.  Theoutput file is rtsock.o3. The "make devs" to create the "/dev/rtsock0-5" devices.4. Run "insmod rtsock.o" to load the rtsock module.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
狠狠色丁香婷婷综合| 26uuu国产在线精品一区二区| 欧美影院午夜播放| 4438成人网| 亚洲国产高清在线观看视频| 亚洲精品国产a| 久久精品国产亚洲a| 成人aa视频在线观看| 在线免费观看日本欧美| 日韩视频在线永久播放| 中文字幕亚洲成人| 日韩高清国产一区在线| 国产不卡视频一区| 欧美性大战久久久| 久久亚洲捆绑美女| 亚洲午夜激情av| 国产永久精品大片wwwapp| 91视频国产资源| 欧美v国产在线一区二区三区| 中文字幕在线不卡一区二区三区| 亚州成人在线电影| www.久久精品| 欧美成人精品福利| 亚洲一区二区综合| 成人性生交大片免费看视频在线 | 亚洲无人区一区| 成人激情小说乱人伦| 7777精品伊人久久久大香线蕉 | 色一情一伦一子一伦一区| 日韩你懂的电影在线观看| 亚洲视频免费看| 极品少妇xxxx偷拍精品少妇| 在线观看不卡一区| 中文字幕第一区第二区| 久久99精品久久久久久动态图| 91国偷自产一区二区三区观看| 国产亚洲成av人在线观看导航 | 精品免费视频.| 亚洲一区在线看| 不卡av在线网| 久久中文字幕电影| 日本中文在线一区| 欧美在线免费视屏| 中文字幕一区二区在线观看| 国内精品伊人久久久久影院对白| 欧美日韩一区 二区 三区 久久精品| 国产欧美一区二区精品性色| 久久99热99| 欧美久久一二区| 洋洋av久久久久久久一区| 99亚偷拍自图区亚洲| 久久久久九九视频| 精品亚洲成a人| 欧美一区二区高清| 视频一区在线视频| 欧美综合一区二区| 亚洲男人的天堂av| 99久久精品国产一区| 国产精品午夜春色av| 国产露脸91国语对白| 精品国产成人系列| 久久99精品国产麻豆婷婷| 日韩欧美一二三四区| 日韩av中文字幕一区二区三区| 欧洲亚洲国产日韩| 亚洲一区二区欧美| 欧美人妇做爰xxxⅹ性高电影| 亚洲一区在线视频观看| 欧美日韩综合在线免费观看| 亚洲影院免费观看| 在线精品亚洲一区二区不卡| 一区二区三区在线免费播放| 色婷婷一区二区三区四区| 亚洲视频免费观看| 在线观看一区二区精品视频| 亚洲一区二区综合| 欧美精品vⅰdeose4hd| 日精品一区二区| 欧美一区二区三区不卡| 免费观看在线色综合| 久久久久久综合| 成人av一区二区三区| 亚洲欧洲无码一区二区三区| 91亚洲大成网污www| 亚洲美女视频一区| 欧美日韩一区不卡| 蜜臀av性久久久久蜜臀aⅴ| 久久综合国产精品| 北条麻妃国产九九精品视频| 自拍偷拍亚洲激情| 欧美三级中文字| 蜜臀av亚洲一区中文字幕| 久久久精品国产99久久精品芒果| 成人手机电影网| 亚洲久草在线视频| 91精品婷婷国产综合久久竹菊| 美国av一区二区| 国产午夜精品一区二区三区视频 | 亚洲韩国精品一区| 69堂亚洲精品首页| 精品亚洲国内自在自线福利| 国产日产欧产精品推荐色| 91在线观看地址| 婷婷国产在线综合| 2017欧美狠狠色| av高清不卡在线| 偷拍一区二区三区| 久久精品欧美一区二区三区不卡 | 五月开心婷婷久久| 亚洲精品在线三区| av一区二区不卡| 图片区小说区国产精品视频| 久久久久久97三级| 欧美视频一区在线| 国内精品视频666| 亚洲三级电影全部在线观看高清| 欧美美女一区二区三区| 国产一区不卡精品| 一区二区久久久久久| 日韩免费看的电影| 91片黄在线观看| 美女视频一区在线观看| 中文字幕中文字幕一区二区| 欧美日韩免费电影| 国产成人免费视频| 亚洲成人av中文| 欧美高清在线精品一区| 欧美精品日韩综合在线| 国产精品影视网| 亚洲成人自拍网| 国产午夜一区二区三区| 欧美日韩国产一级二级| 丁香网亚洲国际| 久久99久久99| 亚洲影院在线观看| 国产精品麻豆网站| 日韩一级完整毛片| 一本高清dvd不卡在线观看| 国内成人自拍视频| 亚洲成人激情自拍| 亚洲欧美日韩中文字幕一区二区三区| 日韩一区二区免费视频| 在线一区二区三区做爰视频网站| 国产美女精品在线| 日韩和的一区二区| 一区在线播放视频| 国产亚洲欧美中文| 欧美一级免费大片| 在线精品亚洲一区二区不卡| 粉嫩绯色av一区二区在线观看| 久久精品国产第一区二区三区| 亚洲午夜免费福利视频| 日韩理论片中文av| 国产欧美综合在线观看第十页| 欧美一区二区高清| 欧美三级在线播放| 在线观看亚洲一区| 不卡av电影在线播放| 国产成人久久精品77777最新版本| 日韩国产欧美三级| 亚洲福利国产精品| 亚洲一区二区3| 亚洲精品成人天堂一二三| 成人免费一区二区三区视频| 久久九九久精品国产免费直播| 日韩亚洲欧美在线观看| 欧美日韩激情一区二区三区| 欧美四级电影在线观看| 一本色道a无线码一区v| 99久久精品国产网站| 99视频有精品| youjizz久久| 盗摄精品av一区二区三区| 国产一区二区三区不卡在线观看| 久久草av在线| 国产在线视频一区二区| 激情偷乱视频一区二区三区| 免费观看91视频大全| 日本欧美一区二区三区| 日韩精品国产精品| 日韩电影在线免费| 日韩高清在线不卡| 老司机午夜精品99久久| 久久精品国产秦先生| 久久精品99国产精品| 捆绑紧缚一区二区三区视频| 精品一区二区三区香蕉蜜桃| 精品一区二区三区av| 国产综合一区二区| 国产一区二区三区| 国产91综合网| 北岛玲一区二区三区四区| 色婷婷精品久久二区二区蜜臀av| 91麻豆.com| 欧美三级蜜桃2在线观看| 欧美精品第1页| 日韩免费一区二区三区在线播放| xvideos.蜜桃一区二区| 国产精品天干天干在线综合| 中文字幕日韩一区|