Home
last modified time | relevance | path

Searched full:bind (Results 1 – 25 of 1054) sorted by relevance

12345678910>>...43

/linux/tools/testing/selftests/media_tests/
H A Dmedia_dev_allocator.sh6 echo "Media Device Allocator testing: unbind and bind"
37 echo "Test bind both devices - start"
38 echo "Running bind of $MDEV from $MDRIVER"
39 echo $MDEV > $MDRIVER/bind;
44 echo "Running bind of $ADEV from $ADRIVER"
45 echo $ADEV > $ADRIVER/bind;
50 echo "Test bind both devices - end"
54 echo "Test unbind $MDEV - bind $MDEV - unbind $ADEV - bind $ADEV start"
64 echo "Running bind of $MDEV from $MDRIVER"
65 echo $MDEV > $MDRIVER/bind;
[all …]
/linux/tools/testing/selftests/net/
H A Dtcp_port_share.c4 /* Tests for TCP port sharing (bind bucket reuse). */
94 /* IP to bind to in order to block the source port */ in FIXTURE_VARIANT()
147 ASSERT_EQ(bind(ln, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
156 ASSERT_EQ(bind(c1, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
162 /* Bind to <bind_ip>:<SRC_PORT>. Block the port from reuse. */ in TEST_F()
168 ASSERT_EQ(bind(pb, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
176 ASSERT_EQ(bind(c2, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
195 * disconnect (connect(AF_UNSPEC)) followed by an explicit port bind().
209 ASSERT_EQ(bind(ln, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
218 ASSERT_EQ(bind(c1, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
[all …]
H A Dreuseaddr_ports_exhausted.c5 * Rules to bind sockets to the same port when all ephemeral ports are
8 * 1. if there are TCP_LISTEN sockets on the port, fail to bind.
9 * 2. if there are sockets without SO_REUSEADDR, fail to bind.
10 * 3. if SO_REUSEADDR is disabled, fail to bind.
12 * succeed to bind.
15 * succeed to bind.
16 * 6. fail to bind.
73 if (bind(fd, (struct sockaddr *)&local_addr, len) == -1) { in bind_port()
92 ASSERT_NE(-1, fd[0]) TH_LOG("failed to bind."); in TEST()
93 EXPECT_EQ(-1, fd[1]) TH_LOG("should fail to bind."); in TEST()
[all …]
H A Dfcnal-test.sh599 log_test_addr ${a} $? 0 "ping out, device bind"
603 log_test_addr ${a} $? 0 "ping out, address bind"
647 log_test_addr ${a} $? 0 "ping local, device bind"
649 # loopback addresses not reachable from device bind
657 log_test_addr ${a} $? 1 "ping local, device bind"
674 # a viable rtable if the oif (e.g., bind to device) is set, so this
702 # a viable rtable if the oif (e.g., bind to device) is set, so this
723 # a viable rtable if the oif (e.g., bind to device) is set, so this
742 log_test_addr ${a} $? 0 "ping out, VRF bind"
746 log_test_addr ${a} $? 0 "ping out, device bind"
[all...]
H A Dsctp_vrf.sh152 echo -n "TEST 05: bind veth2 in server, connect from client 1, N "
156 echo -n "TEST 06: bind veth1 in server, connect from client 1, Y "
160 echo -n "TEST 07: bind vrf-1 in server, connect from client 1, Y "
164 echo -n "TEST 08: bind vrf-2 in server, connect from client 1, N "
168 echo -n "TEST 09: bind vrf-2 in server, connect from client 2, Y "
172 echo -n "TEST 10: bind vrf-1 in server, connect from client 2, N "
176 echo -n "TEST 11: bind vrf-1 & 2 in server, connect from client 1 & 2, Y "
180 echo -n "TEST 12: bind vrf-2 & 1 in server, connect from client 1 & 2, Y "
H A Dbind_bhash.c3 * This times how long it takes to bind to a port when the port already
59 err = bind(sock_fd, res->ai_addr, res->ai_addrlen); in bind_socket()
61 perror("failed to bind to port"); in bind_socket()
96 printf("Usage: listener <port> <ipv6 | ipv4> <bind-addr>\n"); in main()
124 /* Bind to the same port on a different address */ in main()
/linux/drivers/net/ovpn/
H A Dudp.c24 #include "bind.h"
138 * @bind: the binding related to the destination peer
145 static int ovpn_udp4_output(struct ovpn_peer *peer, struct ovpn_bind *bind, in ovpn_udp4_output() argument
151 .saddr = bind->local.ipv4.s_addr, in ovpn_udp4_output()
152 .daddr = bind->remote.in4.sin_addr.s_addr, in ovpn_udp4_output()
154 .fl4_dport = bind->remote.in4.sin_port, in ovpn_udp4_output()
173 bind->local.ipv4.s_addr = 0; in ovpn_udp4_output()
182 bind->local.ipv4.s_addr = 0; in ovpn_udp4_output()
193 &bind->remote.in4, in ovpn_udp4_output()
213 * @bind: the binding related to the destination peer
[all …]
H A Dpeer.c16 #include "bind.h"
108 RCU_INIT_POINTER(peer->bind, NULL); in ovpn_peer_new()
142 struct ovpn_bind *bind; in ovpn_peer_reset_sockaddr() local
148 bind = ovpn_bind_from_sockaddr(ss); in ovpn_peer_reset_sockaddr()
149 if (IS_ERR(bind)) in ovpn_peer_reset_sockaddr()
150 return PTR_ERR(bind); in ovpn_peer_reset_sockaddr()
161 kfree(bind); in ovpn_peer_reset_sockaddr()
165 memcpy(&bind->local, local_ip, ip_len); in ovpn_peer_reset_sockaddr()
169 ovpn_bind_reset(peer, bind); in ovpn_peer_reset_sockaddr()
199 struct ovpn_bind *bind; in ovpn_peer_endpoints_update() local
[all …]
/linux/drivers/gpu/drm/i915/
H A Di915_vma_resource.h37 * struct i915_vma_bindinfo - Information needed for async bind
38 * only but that can be dropped after the bind has taken place.
76 * @private: Bind backend private info.
77 * @start: Offset into the address space of bind range start. Note that
81 * @vma_size: Bind size.
82 * @guard: The size of guard area preceding and trailing the bind.
83 * @page_sizes_gtt: Resulting page sizes from the bind operation.
113 * @bi: Information needed for async bind only but that can be dropped
114 * after the bind has taken place.
190 * @private: Bind backend private info.
[all …]
/linux/include/linux/usb/
H A Dcomposite.h116 * @strings: tables of strings, keyed by identifiers assigned during bind()
119 * string identifiers assigned during @bind(). If this pointer is null,
122 * string identifiers assigned during @bind(). If this pointer is null,
125 * string identifiers assigned during @bind(). If this
129 * interface and string identifiers assigned during @bind(). If
138 * @bind: Before the gadget can register, all of its functions bind() to the
141 * @unbind: Reverses @bind; called as a side effect of unregistering the
168 * causes @bind() to be called so resources can be allocated as part of
202 /* REVISIT: bind() functions can be marked __init, which
205 * Related: unbind() may kfree() but bind() won't...
[all …]
/linux/tools/usb/usbip/doc/
H A Dusbipd.813 .B usbip bind
23 Bind to IPv4. Default is both.
29 Bind to IPv6. Default is both.
35 Run in device mode. Rather than drive an attached device, create a virtual UDC to bind gadgets to.
90 server:# usbip bind --busid=1-2
91 - Bind usbip-host.ko to the device of busid 1-2.
105 - Bind a gadget to usbip-vudc.
/linux/drivers/xen/
H A Devtchn.c62 struct mutex bind_mutex; /* serialize bind/unbind operations */
386 * serialized bind operations.) in evtchn_bind_to_user()
414 /* bind failed, should close the port now */ in evtchn_bind_to_user()
442 /* Prevent bind from racing with unbind */ in evtchn_ioctl()
447 struct ioctl_evtchn_bind_virq bind; in evtchn_ioctl() local
455 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl()
458 bind_virq.virq = bind.virq; in evtchn_ioctl()
472 struct ioctl_evtchn_bind_interdomain bind; in evtchn_ioctl() local
476 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl()
481 u->restrict_domid != bind.remote_domain) in evtchn_ioctl()
[all …]
/linux/Documentation/gpu/
H A Ddrm-vm-bind-async.rst28 signals these when the bind operation is complete.
56 * ``bind context``: A context identifier used for the VM_BIND
57 operation. VM_BIND operations that use the same bind context can be
59 assumptions can be made for VM_BIND operations using separate bind contexts.
95 out-syncobjs and internally in KMD to signal bind completion, any
103 exec functions. For long-running workloads, such pipelining of a bind
138 the kernel mode driver to inject other operations into the bind /
141 the bind completion using the memory out-fence as the signal condition
160 bind operation, due to an error return, no additional action is needed
166 In the case an unexpected error happens during the asynchronous bind
[all …]
/linux/Documentation/driver-api/
H A Dconsole.rst25 do_take_over_console() - load and bind driver to console layer
45 . .. bind name uevent
49 1. bind - this is a read/write file. It shows the status of the driver if
50 read, or acts to bind or unbind the driver to the virtual consoles
59 bind
67 commanded to bind or unbind
75 directly commanded to bind or unbind.
81 hand, will bind the driver to the consoles that are currently occupied by a
126 bind to) the console.
/linux/drivers/vfio/
H A Ddevice_cdev.c64 const struct vfio_device_bind_iommufd *bind) in vfio_df_check_token() argument
69 if (bind->flags & VFIO_DEVICE_BIND_FLAG_TOKEN) in vfio_df_check_token()
74 if (!(bind->flags & VFIO_DEVICE_BIND_FLAG_TOKEN)) in vfio_df_check_token()
77 if (copy_from_user(&uuid, u64_to_user_ptr(bind->token_uuid_ptr), in vfio_df_check_token()
88 struct vfio_device_bind_iommufd bind; in vfio_df_ioctl_bind_iommufd() local
102 ret = copy_struct_from_user(&bind, sizeof(bind), arg, user_size); in vfio_df_ioctl_bind_iommufd()
106 if (bind.iommufd < 0 || bind.flags & ~VALID_FLAGS) in vfio_df_ioctl_bind_iommufd()
124 ret = vfio_df_check_token(device, &bind); in vfio_df_ioctl_bind_iommufd()
128 df->iommufd = iommufd_ctx_from_fd(bind.iommufd); in vfio_df_ioctl_bind_iommufd()
/linux/tools/testing/selftests/landlock/
H A Dnet_test.c194 ret = bind(sock_fd, &srv->ipv4_addr, addrlen); in bind_variant_addrlen()
198 ret = bind(sock_fd, &srv->ipv6_addr, addrlen); in bind_variant_addrlen()
202 ret = bind(sock_fd, &srv->unix_addr, addrlen); in bind_variant_addrlen()
517 /* Starts invalid addrlen tests with bind. */ in test_bind_and_connect()
524 /* Tries to bind with zero as addrlen. */ in test_bind_and_connect()
527 /* Tries to bind with too small addrlen. */ in test_bind_and_connect()
531 /* Tries to bind with minimal addrlen. */ in test_bind_and_connect()
538 TH_LOG("Failed to bind to socket: %s", strerror(errno)); in test_bind_and_connect()
638 TEST_F(protocol, bind) in TEST_F() argument
660 /* Allows connect and bind for the first port. */ in TEST_F()
[all …]
/linux/tools/testing/selftests/tc-testing/tc-tests/filters/
H A Dmatchall.json18 …n": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*ref 1 bind 1",
40 …tern": "^filter parent 1: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*ref 1 bind 1",
62 …: "^filter parent ffff: protocol ipv6 pref 1 matchall.*handle 0x1.*gact action drop.*ref 1 bind 1",
84 …rn": "^filter parent 1: protocol ipv6 pref 1 matchall.*handle 0x1.*gact action drop.*ref 1 bind 1",
106 …"^filter parent ffff: protocol ip pref 65535 matchall.*handle 0x1.*gact action pass.*ref 1 bind 1",
128 …": "^filter parent 1: protocol ip pref 65535 matchall.*handle 0x1.*gact action pass.*ref 1 bind 1",
150 …^filter parent ffff: protocol ip pref 655355 matchall.*handle 0x1.*gact action pass.*ref 1 bind 1",
172 …: "^filter parent 1: protocol ip pref 655355 matchall.*handle 0x1.*gact action pass.*ref 1 bind 1",
194 … parent ffff: protocol all pref 1 matchall.*handle 0xffffffff.*gact action continue.*ref 1 bind 1",
216 …ter parent 1: protocol all pref 1 matchall.*handle 0xffffffff.*gact action continue.*ref 1 bind 1",
[all …]
/linux/tools/usb/usbip/src/
H A Dusbip_bind.c28 "usbip bind <args>\n"
29 " -b, --busid=<busid> Bind " USBIP_HOST_DRV_NAME ".ko to device "
40 char attr_name[] = "bind"; in bind_usbip()
149 err("bind loop detected: device: %s is attached to %s\n", in bind_device()
166 err("unable to bind device on %s", busid); in bind_device()
172 err("could not bind device to %s", USBIP_HOST_DRV_NAME); in bind_device()
177 info("bind device on busid %s: complete", busid); in bind_device()
/linux/Documentation/scsi/
H A DNinjaSCSI.rst94 bind "nsp_cs"
98 bind "nsp_cs"
103 bind "nsp_cs"
108 bind "nsp_cs"
111 bind "nsp_cs"
114 bind "nsp_cs"
117 bind "nsp_cs"
/linux/net/sched/
H A Dact_gact.c59 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_gact_init() local
100 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_gact_init()
103 &act_gact_ops, bind, flags); in tcf_gact_init()
110 if (bind)/* dont override defaults */ in tcf_gact_init()
113 tcf_idr_release(*a, bind); in tcf_gact_init()
145 tcf_idr_release(*a, bind); in tcf_gact_init()
186 int bind, int ref) in tcf_gact_dump() argument
193 .bindcnt = atomic_read(&gact->tcf_bindcnt) - bind, in tcf_gact_dump()
240 u32 *index_inc, bool bind, in tcf_gact_offload_act_setup() argument
243 if (bind) { in tcf_gact_offload_act_setup()
H A Dact_sample.c42 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_sample_init() local
64 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_sample_init()
68 if (exists && bind) in tcf_sample_init()
73 &act_sample_ops, bind, true, flags); in tcf_sample_init()
80 tcf_idr_release(*a, bind); in tcf_sample_init()
132 tcf_idr_release(*a, bind); in tcf_sample_init()
225 int bind, int ref) in tcf_sample_dump() argument
232 .bindcnt = atomic_read(&s->tcf_bindcnt) - bind, in tcf_sample_dump()
297 u32 *index_inc, bool bind, in tcf_sample_offload_act_setup() argument
300 if (bind) { in tcf_sample_offload_act_setup()
H A Dact_skbedit.c121 bool bind = act_flags & TCA_ACT_FLAGS_BIND; in tcf_skbedit_init() local
205 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbedit_init()
209 if (exists && bind) in tcf_skbedit_init()
214 tcf_idr_release(*a, bind); in tcf_skbedit_init()
222 &act_skbedit_ops, bind, true, act_flags); in tcf_skbedit_init()
233 tcf_idr_release(*a, bind); in tcf_skbedit_init()
279 tcf_idr_release(*a, bind); in tcf_skbedit_init()
284 int bind, int ref) in tcf_skbedit_dump() argument
292 .bindcnt = atomic_read(&d->tcf_bindcnt) - bind, in tcf_skbedit_dump()
367 u32 *index_inc, bool bind, in tcf_skbedit_offload_act_setup() argument
[all …]
/linux/drivers/infiniband/sw/rxe/
H A Drxe_mw.c56 "attempt to bind a type 1 MW not in the valid state\n"); in rxe_check_bind_mw()
62 rxe_dbg_mw(mw, "attempt to bind a zero based type 1 MW\n"); in rxe_check_bind_mw()
71 "attempt to bind a type 2 MW not in the free state\n"); in rxe_check_bind_mw()
78 "attempt to bind type 2 MW with qp with different PD\n"); in rxe_check_bind_mw()
95 rxe_dbg_mw(mw, "attempt to bind MW to zero based MR\n"); in rxe_check_bind_mw()
102 "attempt to bind an MW to an MR without bind access\n"); in rxe_check_bind_mw()
111 "attempt to bind an Writable MW to an MR without local write access\n"); in rxe_check_bind_mw()
119 "attempt to bind a ZB MW outside of the MR\n"); in rxe_check_bind_mw()
127 "attempt to bind a VA MW outside of the MR\n"); in rxe_check_bind_mw()
/linux/net/mctp/test/
H A Dsock-test.c287 /* specific remote peer doesn't conflict with any-peer bind */
290 /* bind() NET_ANY is allowed with a connect() net */
306 "{bind(addr %d, type %d, net %d%s)} {bind(addr %d, type %d, net %d%s)} -> error %d", in mctp_bind_pair_desc()
320 /* bind() fails if the bind() vs connect() networks mismatch. */ in mctp_test_bind_invalid()
338 /* Bind to first address, always succeeds */ in mctp_test_bind_conflicts_inner()
342 /* A second identical bind always fails */ in mctp_test_bind_conflicts_inner()
346 /* A different bind, result is returned */ in mctp_test_bind_conflicts_inner()
370 /* swapping the calls, the second bind should still fail */ in mctp_test_bind_conflicts()
/linux/Documentation/networking/
H A Daf_xdp.rst53 The socket is then finally bound with a bind() call to a device and a
54 specific queue id on that device, and it is not until bind is
59 corresponding two rings, sets the XDP_SHARED_UMEM flag in the bind
112 system call. A UMEM is bound to a netdev and queue id, via the bind()
243 XDP_COPY and XDP_ZEROCOPY bind flags
246 When you bind to a socket, the kernel will first try to use zero-copy
250 pass the XDP_COPY flag to the bind call, the kernel will force the
251 socket into copy mode. If it cannot use copy mode, the bind call will
255 XDP_SHARED_UMEM bind flag
258 This flag enables you to bind multiple sockets to the same UMEM. It
[all …]

12345678910>>...43