Searched refs:ifd (Results 1 - 25 of 62) sorted by relevance

123

/freebsd-current/sys/net/altq/
H A Daltq_rmclass.c65 #define reset_cutoff(ifd) { ifd->cutoff_ = RM_MAXDEPTH; }
122 * 'pri' on the interface given by 'ifd'.
179 rmc_newclass(int pri, struct rm_ifdat *ifd, u_int nsecPerByte, argument
232 cl->ifdat_ = ifd;
310 IFQ_LOCK(ifd->ifq_);
311 if ((peer = ifd->active_[pri]) != NULL) {
314 while (peer->peer_ != ifd->active_[pri])
318 ifd->active_[pri] = cl;
337 if (ifd
351 struct rm_ifdat *ifd; local
408 rmc_wrr_set_weights(struct rm_ifdat *ifd) argument
446 rmc_get_weight(struct rm_ifdat *ifd, int pri) argument
544 rmc_delete_class(struct rm_ifdat *ifd, struct rm_class *cl) argument
669 rmc_init(struct ifaltq *ifq, struct rm_ifdat *ifd, u_int nsecPerByte, void (*restart)(struct ifaltq *), int maxq, int maxqueued, u_int maxidle, int minidle, u_int offtime, int flags) argument
749 struct rm_ifdat *ifd = cl->ifdat_; local
814 rmc_tl_satisfied(struct rm_ifdat *ifd, struct timeval *now) argument
877 struct rm_ifdat *ifd = cl->ifdat_; local
955 _rmc_wrr_dequeue_next(struct rm_ifdat *ifd, int op) argument
1111 _rmc_prr_dequeue_next(struct rm_ifdat *ifd, int op) argument
1225 rmc_dequeue_next(struct rm_ifdat *ifd, int mode) argument
1249 rmc_update_class_util(struct rm_ifdat *ifd) argument
1430 struct rm_ifdat *ifd = cl->ifdat_; local
1440 struct rm_ifdat *ifd = cl->ifdat_; local
1548 struct rm_ifdat *ifd = cl->ifdat_; local
[all...]
/freebsd-current/usr.sbin/bsnmpd/modules/snmp_bridge/
H A Dbridge_sys.c136 struct ifdrv ifd; local
139 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ);
140 ifd.ifd_len = sizeof(b_param);
141 ifd.ifd_data = &b_param;
144 ifd.ifd_cmd = BRDGGPRI;
145 if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
154 ifd.ifd_cmd = BRDGGMA;
155 if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
165 ifd.ifd_cmd = BRDGGHT;
166 if (ioctl(sock, SIOCGDRVSPEC, &ifd) <
223 struct ifdrv ifd; local
282 struct ifdrv ifd; local
325 struct ifdrv ifd; local
347 struct ifdrv ifd; local
369 struct ifdrv ifd; local
391 struct ifdrv ifd; local
413 struct ifdrv ifd; local
435 struct ifdrv ifd; local
460 struct ifdrv ifd; local
746 struct ifdrv ifd; local
774 struct ifdrv ifd; local
816 struct ifdrv ifd; local
849 struct ifdrv ifd; local
900 struct ifdrv ifd; local
944 struct ifdrv ifd; local
989 struct ifdrv ifd; local
1022 struct ifdrv ifd; local
1060 struct ifdrv ifd; local
1109 struct ifdrv ifd; local
1319 struct ifdrv ifd; local
[all...]
/freebsd-current/contrib/smbfs/lib/smb/
H A Dnb_net.c105 struct nb_ifdesc *ifd; local
123 if (strlen(p->ifa_name) >= sizeof(ifd->id_name))
126 ifd = malloc(sizeof(struct nb_ifdesc));
127 if (ifd == NULL) {
132 bzero(ifd, sizeof(struct nb_ifdesc));
133 strcpy(ifd->id_name, p->ifa_name);
134 ifd->id_flags = p->ifa_flags;
135 ifd->id_addr = ((struct sockaddr_in *)p->ifa_addr)->sin_addr;
136 ifd->id_mask = ((struct sockaddr_in *)p->ifa_netmask)->sin_addr;
137 ifd
[all...]
/freebsd-current/contrib/elftoolchain/libelftc/
H A Delftc_copyfile.c43 * Copy the contents referenced by 'ifd' to 'ofd'. Returns 0 on
48 elftc_copyfile(int ifd, int ofd) argument
57 if (fstat(ifd, &sb) < 0)
72 buf = mmap(NULL, file_size, PROT_READ, MAP_SHARED, ifd, (off_t) 0);
88 if ((nr = read(ifd, b, n)) < 0) {
/freebsd-current/sys/net/
H A Dif_clone.h53 struct ifc_data *ifd, struct ifnet **ifpp);
72 struct ifc_data_nl *ifd);
73 typedef int ifc_modify_nl_f(struct ifnet *ifp, struct ifc_data_nl *ifd);
107 int ifc_create_ifp(const char *name, struct ifc_data *ifd, struct ifnet **ifpp);
109 bool ifc_create_ifp_nl(const char *name, struct ifc_data_nl *ifd);
110 bool ifc_modify_ifp_nl(struct ifnet *ifp, struct ifc_data_nl *ifd);
116 int ifc_copyin(const struct ifc_data *ifd, void *target, size_t len);
H A Dif_clone.c114 struct ifc_data_nl *ifd);
197 ifc_create_ifp(const char *name, struct ifc_data *ifd, struct ifnet **ifpp) argument
205 .flags = ifd->flags,
206 .unit = ifd->unit,
207 .params = ifd->params,
219 ifc_create_ifp_nl(const char *name, struct ifc_data_nl *ifd) argument
223 ifd->error = EINVAL;
227 ifd->error = if_clone_createif_nl(ifc, name, ifd);
235 struct ifc_data ifd local
247 ifc_modify_ifp_nl(struct ifnet *ifp, struct ifc_data_nl *ifd) argument
271 ifc_create_ifp_nl_default(struct if_clone *ifc, char *name, size_t len, struct ifc_data_nl *ifd) argument
284 ifc_modify_ifp_nl_default(struct ifnet *ifp, struct ifc_data_nl *ifd) argument
384 if_clone_createif_nl(struct if_clone *ifc, const char *ifname, struct ifc_data_nl *ifd) argument
647 struct ifc_data_nl ifd = {}; local
942 ifc_copyin(const struct ifc_data *ifd, void *target, size_t len) argument
[all...]
H A Dif_stf.c243 struct ifc_data *ifd, struct ifnet **ifpp)
945 struct ifdrv *ifd; local
957 ifd = (struct ifdrv *)data;
961 if (ifd->ifd_cmd == STF6RD_SV4NET) {
962 if (ifd->ifd_len != sizeof(args)) {
967 error = copyin(ifd->ifd_data, &args, ifd->ifd_len);
981 } else if (ifd->ifd_cmd == STF6RD_SBR) {
982 if (ifd->ifd_len != sizeof(args)) {
987 error = copyin(ifd
242 stf_clone_create(struct if_clone *ifc, char *name, size_t len, struct ifc_data *ifd, struct ifnet **ifpp) argument
[all...]
/freebsd-current/lib/libifconfig/
H A Dlibifconfig_bridge.c52 struct ifdrv ifd = { 0 }; local
55 strlcpy(ifd.ifd_name, name, sizeof(ifd.ifd_name));
56 ifd.ifd_cmd = cmd;
57 ifd.ifd_data = arg;
58 ifd.ifd_len = arglen;
60 return (ifconfig_ioctlwrap(h, AF_LOCAL, req, &ifd));
/freebsd-current/contrib/mandoc/
H A Ddbm_map.c51 static int ifd; variable
65 if ((ifd = open(fname, O_RDONLY)) == -1)
67 if (fstat(ifd, &st) == -1)
79 ifd, 0)) == MAP_FAILED)
122 close(ifd);
132 if (close(ifd) == -1)
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dstride_dd.c126 int ifd; local
133 ifd = open(ifile, O_RDONLY);
134 if (ifd == -1) {
166 c = read(ifd, buf, bsize);
198 if (lseek(ifd, (stride - 1) * bsize, SEEK_CUR) == -1) {
211 (void) close(ifd);
/freebsd-current/lib/libopenbsd/
H A Dimsg.c58 struct imsg_fd *ifd; local
70 if ((ifd = calloc(1, sizeof(struct imsg_fd))) == NULL)
78 free(ifd);
106 if (ifd != NULL) {
107 ifd->fd = fd;
108 TAILQ_INSERT_TAIL(&ibuf->fds, ifd,
110 ifd = NULL;
119 free(ifd);
273 struct imsg_fd *ifd; local
275 if ((ifd
[all...]
/freebsd-current/sbin/ifconfig/
H A Difstf.c57 struct ifdrv ifd = {}; local
59 strlcpy(ifd.ifd_name, ctx->ifname, sizeof(ifd.ifd_name));
60 ifd.ifd_cmd = op;
61 ifd.ifd_len = argsize;
62 ifd.ifd_data = arg;
64 return (ioctl_ctx(ctx, set ? SIOCSDRVSPEC : SIOCGDRVSPEC, &ifd));
/freebsd-current/contrib/openpam/lib/libpam/
H A Dopenpam_ttyconv.c82 prompt_tty(int ifd, int ofd, const char *message, char *response, int echo) argument
98 if (tcgetattr(ifd, &tcattr) != 0) {
104 if (tcsetattr(ifd, TCSAFLUSH, &tcattr) != 0) {
143 pfd.fd = ifd;
168 if ((ret = read(ifd, &ch, 1)) < 0) {
185 if (tcsetattr(ifd, 0, &tcattr) != 0) {
289 int ifd, ofd, ret; local
296 ifd = STDIN_FILENO;
299 if ((ifd = open("/dev/tty", O_RDWR)) < 0)
302 ofd = ifd;
[all...]
/freebsd-current/tools/tools/intel-ucode-split/
H A Dintel-ucode-split.c124 int c, ifd, ofd; local
146 ifd = open(argv[0], O_RDONLY);
147 if (ifd < 0)
156 rv = read(ifd, &hdr, sizeof(hdr));
176 if (lseek(ifd, resid, SEEK_CUR) == -1)
199 rv = read(ifd, buf, len);
/freebsd-current/lib/libusb/
H A Dlibusb10_desc.c103 struct libusb_interface_descriptor *ifd; local
176 ifd = (libusb_interface_descriptor *) (pconfd->interface + nif);
177 endd = (libusb_endpoint_descriptor *) (ifd + nalt);
201 pconfd->interface[i].altsetting = ifd;
202 ifd->endpoint = endd;
204 ifd++;
207 ifd->endpoint = endd;
209 ifd++;
221 ifd = &pconfd->interface[i].altsetting[j];
222 ifd
[all...]
/freebsd-current/usr.bin/split/
H A Dsplit.c59 static int ifd = -1, ofd = -1; /* Input/output file descriptors. */ variable
160 ifd = STDIN_FILENO;
161 else if ((ifd = open(*argv, O_RDONLY, 0)) < 0)
190 if (ifd == -1) /* Stdin by default. */
191 ifd = 0;
222 switch ((len = read(ifd, bfr, sizeof(bfr)))) {
285 if ((infp = fdopen(ifd, "r")) == NULL)
328 if (fstat(ifd, &sb) == -1) {
/freebsd-current/sys/dev/ofw/
H A Dofw_disk.c140 ihandle_t ifd; local
154 ifd = OF_open(path);
155 if (ifd == -1) {
164 sc->ofwd_instance = ifd;
/freebsd-current/share/examples/ipfilter/samples/
H A Drelay.c30 int relay(ifd, ofd, rfd)
31 int ifd, ofd, rfd;
40 nfd = ifd;
52 FD_SET(ifd, &rfds);
64 if (FD_ISSET(ifd, &rfds)) {
65 rw = read(ifd, irh, ibuff + RELAY_BUFSZ - irh);
/freebsd-current/contrib/elftoolchain/elfcopy/
H A Dbinary.c47 create_binary(int ifd, int ofd) argument
57 if ((e = elf_begin(ifd, ELF_C_READ, NULL)) == NULL)
139 create_elf_from_binary(struct elfcopy *ecp, int ifd, const char *ifn) argument
157 if (fstat(ifd, &sb) == -1)
163 if (read(ifd, content, sb.st_size) != sb.st_size)
/freebsd-current/sys/netpfil/pf/
H A Dif_pflog.c118 struct ifc_data ifd = { .unit = 0 }; local
119 ifc_create_ifp(pflogname, &ifd, NULL);
124 struct ifc_data *ifd, struct ifnet **ifpp)
128 if (ifd->unit >= PFLOGIFS_MAX)
135 if_initname(ifp, pflogname, ifd->unit);
146 V_pflogifs[ifd->unit] = ifp;
123 pflog_clone_create(struct if_clone *ifc, char *name, size_t maxlen, struct ifc_data *ifd, struct ifnet **ifpp) argument
/freebsd-current/usr.bin/ar/
H A Dacpyacc.y61 static int arscp_copy(int ifd, int ofd);
272 int ifd, ofd;
292 if ((ifd = open(in, O_RDONLY)) < 0) {
296 if (arscp_copy(ifd, ofd)) {
300 close(ifd);
325 arscp_copy(int ifd, int ofd)
332 if (fstat(ifd, &sb) < 0) {
336 if ((p = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, ifd,
/freebsd-current/contrib/ntp/util/
H A Dtickadj.c835 int ifd; local
837 ifd = open(name, mode);
838 if (ifd < 0)
844 return ifd;
880 int ifd,
887 if (lseek(ifd, off, L_SET) == -1)
893 i = read(ifd, (char *)var, sizeof(int));
879 readvar( int ifd, off_t off, int *var ) argument
/freebsd-current/usr.sbin/arp/
H A Darp.c827 struct ifaddrs *ifa, *ifd, *ifas = NULL; local
869 for (ifd = ifas; ifd != NULL; ifd = ifd->ifa_next) {
870 if (ifd->ifa_addr == NULL)
872 if (strcmp(ifa->ifa_name, ifd->ifa_name) == 0 &&
873 ifd->ifa_addr->sa_family == AF_LINK)
876 if (ifd == NULL)
881 dla = (struct sockaddr_dl *)ifd
[all...]
/freebsd-current/sbin/nvmecontrol/
H A Dpassthru.c157 int fd = -1, ifd = -1; local
170 if (*opt.ifn && (ifd = open(opt.ifn, O_RDONLY)) == -1) {
192 (bytes_read = read(ifd, data, opt.data_len)) !=
258 if (ifd > -1)
259 close(ifd);
/freebsd-current/usr.bin/patch/
H A Dinp.c139 int ifd, statfailed; local
185 if ((ifd = open(filename, O_RDONLY)) < 0)
189 i_womp = mmap(NULL, i_size, PROT_READ, MAP_PRIVATE, ifd, 0);
193 close(ifd);
200 close(ifd);

Completed in 400 milliseconds

123