Lines Matching refs:sv
136 sv_close(struct irs_sv *sv)
138 struct service_private *service = (struct service_private *)sv->private_data;
144 memput(sv, sizeof *sv);
149 sv_rewind(struct irs_sv *sv)
152 = (struct service_private *)sv->private_data;
209 sv_next(struct irs_sv *sv)
211 struct service_private *service = (struct service_private *)sv->private_data;
215 sv_rewind(sv);
267 sv_byname(struct irs_sv *sv, const char *name, const char *protocol)
271 sv_rewind(sv);
273 while ((servent = sv_next(sv))) {
292 sv_byport(struct irs_sv *sv, int port, const char *protocol)
296 sv_rewind(sv);
297 while ((servent = sv_next(sv))) {
308 sv_minimize(struct irs_sv *sv)
310 struct service_private *service = (struct service_private *)sv->private_data;
326 struct irs_sv *sv;
328 if ((sv = (irs_sv *)memget(sizeof *sv)) == NULL) {
333 memput(sv, sizeof *sv);
340 sv->private_data = service;
341 sv->close = sv_close;
342 sv->next = sv_next;
343 sv->byname = sv_byname;
344 sv->byport = sv_byport;
345 sv->rewind = sv_rewind;
346 sv->minimize = sv_minimize;
347 sv->res_get = NULL;
348 sv->res_set = NULL;
350 return sv;