netmap_freebsd.c (aa3860851b9f6a6002d135b1cac7736e0995eedc) netmap_freebsd.c (ef9ffb8594eee294334ced627755bf5b46b48f9f)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright (C) 2013-2014 Universita` di Pisa. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 1383 unchanged lines hidden (view full) ---

1392}
1393
1394static int
1395netmap_knwrite(struct knote *kn, long hint)
1396{
1397 return netmap_knrw(kn, hint, POLLOUT);
1398}
1399
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright (C) 2013-2014 Universita` di Pisa. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 1383 unchanged lines hidden (view full) ---

1392}
1393
1394static int
1395netmap_knwrite(struct knote *kn, long hint)
1396{
1397 return netmap_knrw(kn, hint, POLLOUT);
1398}
1399
1400static struct filterops netmap_rfiltops = {
1400static const struct filterops netmap_rfiltops = {
1401 .f_isfd = 1,
1402 .f_detach = netmap_knrdetach,
1403 .f_event = netmap_knread,
1404};
1405
1401 .f_isfd = 1,
1402 .f_detach = netmap_knrdetach,
1403 .f_event = netmap_knread,
1404};
1405
1406static struct filterops netmap_wfiltops = {
1406static const struct filterops netmap_wfiltops = {
1407 .f_isfd = 1,
1408 .f_detach = netmap_knwdetach,
1409 .f_event = netmap_knwrite,
1410};
1411
1412
1413/*
1414 * This is called when a thread invokes kevent() to record

--- 171 unchanged lines hidden ---
1407 .f_isfd = 1,
1408 .f_detach = netmap_knwdetach,
1409 .f_event = netmap_knwrite,
1410};
1411
1412
1413/*
1414 * This is called when a thread invokes kevent() to record

--- 171 unchanged lines hidden ---