cuse.c (71625ec9ad2a9bc8c09784fbd23b759830e0ee5f) | cuse.c (ef9ffb8594eee294334ced627755bf5b46b48f9f) |
---|---|
1/*- 2 * Copyright (c) 2010-2022 Hans Petter Selasky 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 177 unchanged lines hidden (view full) --- 186static int cuse_alloc_unit_id[CUSE_DEVICES_MAX]; 187 188static void cuse_server_wakeup_all_client_locked(struct cuse_server *pcs); 189static void cuse_client_kqfilter_read_detach(struct knote *kn); 190static void cuse_client_kqfilter_write_detach(struct knote *kn); 191static int cuse_client_kqfilter_read_event(struct knote *kn, long hint); 192static int cuse_client_kqfilter_write_event(struct knote *kn, long hint); 193 | 1/*- 2 * Copyright (c) 2010-2022 Hans Petter Selasky 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 177 unchanged lines hidden (view full) --- 186static int cuse_alloc_unit_id[CUSE_DEVICES_MAX]; 187 188static void cuse_server_wakeup_all_client_locked(struct cuse_server *pcs); 189static void cuse_client_kqfilter_read_detach(struct knote *kn); 190static void cuse_client_kqfilter_write_detach(struct knote *kn); 191static int cuse_client_kqfilter_read_event(struct knote *kn, long hint); 192static int cuse_client_kqfilter_write_event(struct knote *kn, long hint); 193 |
194static struct filterops cuse_client_kqfilter_read_ops = { | 194static const struct filterops cuse_client_kqfilter_read_ops = { |
195 .f_isfd = 1, 196 .f_detach = cuse_client_kqfilter_read_detach, 197 .f_event = cuse_client_kqfilter_read_event, 198}; 199 | 195 .f_isfd = 1, 196 .f_detach = cuse_client_kqfilter_read_detach, 197 .f_event = cuse_client_kqfilter_read_event, 198}; 199 |
200static struct filterops cuse_client_kqfilter_write_ops = { | 200static const struct filterops cuse_client_kqfilter_write_ops = { |
201 .f_isfd = 1, 202 .f_detach = cuse_client_kqfilter_write_detach, 203 .f_event = cuse_client_kqfilter_write_event, 204}; 205 206static d_open_t cuse_client_open; 207static d_close_t cuse_client_close; 208static d_ioctl_t cuse_client_ioctl; --- 1834 unchanged lines hidden --- | 201 .f_isfd = 1, 202 .f_detach = cuse_client_kqfilter_write_detach, 203 .f_event = cuse_client_kqfilter_write_event, 204}; 205 206static d_open_t cuse_client_open; 207static d_close_t cuse_client_close; 208static d_ioctl_t cuse_client_ioctl; --- 1834 unchanged lines hidden --- |