| /linux/tools/testing/selftests/media_tests/ |
| H A D | media_dev_allocator.sh | 6 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/drivers/net/ovpn/ |
| H A D | udp.c | 23 #include "bind.h" 178 * @peer: the peer owning the bind and dst cache 179 * @bind: the RCU bind used for the route lookup 182 * Check that @bind is still the current peer bind and that @key still matches 184 * @bind inside an RCU read-side critical section, so pointer identity is enough 185 * to detect whether the bind was replaced while the route lookup was running. 188 * may update the dst cache or replace the bind. 191 const struct ovpn_bind *bind, in ovpn_dst_cache_current() argument 198 curr_bind = rcu_dereference_protected(peer->bind, in ovpn_dst_cache_current() 201 return curr_bind == bind && in ovpn_dst_cache_current() [all …]
|
| H A D | bind.c | 14 #include "bind.h" 21 * Return: the bind matching the passed sockaddr if found, NULL otherwise 25 struct ovpn_bind *bind; in ovpn_bind_from_sockaddr() local 35 bind = kzalloc_obj(*bind, GFP_ATOMIC); in ovpn_bind_from_sockaddr() 36 if (unlikely(!bind)) in ovpn_bind_from_sockaddr() 39 memcpy(&bind->remote, ss, sa_len); in ovpn_bind_from_sockaddr() 41 return bind; in ovpn_bind_from_sockaddr() 47 * @new: the new bind to assign 53 kfree_rcu(rcu_replace_pointer(peer->bind, new, in ovpn_bind_reset()
|
| H A D | peer.c | 16 #include "bind.h" 113 RCU_INIT_POINTER(peer->bind, NULL); in ovpn_peer_new() 148 struct ovpn_bind *bind; in ovpn_peer_reset_sockaddr() local 154 bind = ovpn_bind_from_sockaddr(ss); in ovpn_peer_reset_sockaddr() 155 if (IS_ERR(bind)) in ovpn_peer_reset_sockaddr() 156 return PTR_ERR(bind); in ovpn_peer_reset_sockaddr() 167 kfree(bind); in ovpn_peer_reset_sockaddr() 171 memcpy(&bind->local, local_ip, ip_len); in ovpn_peer_reset_sockaddr() 175 ovpn_bind_reset(peer, bind); in ovpn_peer_reset_sockaddr() 194 const struct ovpn_bind *bind); [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | tcp_port_share.c | 4 /* 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 D | reuseaddr_ports_exhausted.c | 5 * 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 D | fcnal-test.sh | 599 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 D | sctp_vrf.sh | 152 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 D | bind_bhash.c | 3 * 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() 97 printf("Usage: listener <port> <ipv6 | ipv4> <bind-addr>\n"); in main() 125 /* Bind to the same port on a different address */ in main()
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_vma_resource.h | 37 * 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 D | composite.h | 116 * @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 D | usbipd.8 | 13 .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/Documentation/gpu/ |
| H A D | drm-vm-bind-async.rst | 28 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/drivers/xen/ |
| H A D | evtchn.c | 62 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/net/sched/ |
| H A D | act_vlan.c | 120 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_vlan_init() local 147 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_vlan_init() 151 if (exists && bind) in tcf_vlan_init() 161 tcf_idr_release(*a, bind); in tcf_vlan_init() 169 tcf_idr_release(*a, bind); in tcf_vlan_init() 183 tcf_idr_release(*a, bind); in tcf_vlan_init() 201 tcf_idr_release(*a, bind); in tcf_vlan_init() 209 tcf_idr_release(*a, bind); in tcf_vlan_init() 218 &act_vlan_ops, bind, flags); in tcf_vlan_init() 226 tcf_idr_release(*a, bind); in tcf_vlan_init() [all …]
|
| H A D | act_gact.c | 59 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_gact_init() local 105 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_gact_init() 108 &act_gact_ops, bind, flags); in tcf_gact_init() 115 if (bind)/* dont override defaults */ in tcf_gact_init() 118 tcf_idr_release(*a, bind); in tcf_gact_init() 150 tcf_idr_release(*a, bind); in tcf_gact_init() 191 int bind, int ref) in tcf_gact_dump() argument 198 .bindcnt = atomic_read(&gact->tcf_bindcnt) - bind, in tcf_gact_dump() 245 u32 *index_inc, bool bind, in tcf_gact_offload_act_setup() argument 248 if (bind) { in tcf_gact_offload_act_setup()
|
| H A D | act_sample.c | 42 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 D | act_skbmod.c | 112 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_skbmod_init() local 158 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbmod_init() 162 if (exists && bind) in tcf_skbmod_init() 167 tcf_idr_release(*a, bind); in tcf_skbmod_init() 175 &act_skbmod_ops, bind, true, flags); in tcf_skbmod_init() 183 tcf_idr_release(*a, bind); in tcf_skbmod_init() 227 tcf_idr_release(*a, bind); in tcf_skbmod_init() 242 int bind, int ref) in tcf_skbmod_dump() argument 253 opt.bindcnt = atomic_read(&d->tcf_bindcnt) - bind; in tcf_skbmod_dump()
|
| H A D | act_skbedit.c | 120 bool bind = act_flags & TCA_ACT_FLAGS_BIND; in tcf_skbedit_init() 208 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbedit_init() 212 if (exists && bind) in tcf_skbedit_init() 217 tcf_idr_release(*a, bind); in tcf_skbedit_init() 225 &act_skbedit_ops, bind, true, act_flags); in tcf_skbedit_init() 236 tcf_idr_release(*a, bind); in tcf_skbedit_init() 282 tcf_idr_release(*a, bind); in tcf_skbedit_init() 287 int bind, int ref) in tcf_skbedit_dump() 295 .bindcnt = atomic_read(&d->tcf_bindcnt) - bind, in tcf_skbedit_dump() 370 u32 *index_inc, bool bind, in tcf_skbedit_offload_act_setup() 121 bool bind = act_flags & TCA_ACT_FLAGS_BIND; tcf_skbedit_init() local 288 tcf_skbedit_dump(struct sk_buff * skb,struct tc_action * a,int bind,int ref) tcf_skbedit_dump() argument 371 tcf_skbedit_offload_act_setup(struct tc_action * act,void * entry_data,u32 * index_inc,bool bind,struct netlink_ext_ack * extack) tcf_skbedit_offload_act_setup() argument [all...] |
| /linux/Documentation/driver-api/ |
| H A D | console.rst | 25 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/tools/testing/selftests/tc-testing/tc-tests/actions/ |
| H A D | batch-delete.json | 28 …"matchPattern": "total acts 3\\b.*index 1 ref 2 bind 1\\b.*index 2 ref 1 bind 0\\b.*index 3 ref 1 … 66 "matchPattern": "total acts 2\\b.*index 2 ref 2 bind 1\\b.*index 3 ref 1 bind 0\\b", 103 "matchPattern": "total acts 1\\b.*index 1 ref 2 bind 1\\b",
|
| /linux/tools/testing/selftests/tc-testing/tc-tests/filters/ |
| H A D | matchall.json | 18 …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 D | usbip_bind.c | 28 "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 D | NinjaSCSI.rst | 94 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/tools/lib/bpf/ |
| H A D | elf.c | 335 /* Only accept one non-weak bind. */ in elf_find_func_offset() 341 /* already have a non-weak bind, and in elf_find_func_offset() 342 * this is a weak bind, so ignore. in elf_find_func_offset() 390 int bind; member 448 int bind = GELF_ST_BIND(sym->sym.st_info); in elf_resolve_syms_offsets() local 464 if (found->bind != STB_WEAK && bind != STB_WEAK) { in elf_resolve_syms_offsets() 465 /* Only accept one non-weak bind. */ in elf_resolve_syms_offsets() 470 } else if (bind == STB_WEAK) { in elf_resolve_syms_offsets() 471 /* already have a non-weak bind, and in elf_resolve_syms_offsets() 472 * this is a weak bind, so ignore. in elf_resolve_syms_offsets() [all …]
|