kern_ktr.c (d39d4a6e6412f88225d1b78c8a797ab82daac250) kern_ktr.c (e551d452112c5aa9e36b55316981901967237037)
1/*-
2 * Copyright (c) 2000 John Baldwin <jhb@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

140
141 if (enable) {
142 if (ktr_alq_enabled)
143 return (0);
144 error = suser(curthread);
145 if (error)
146 return (error);
147 error = alq_open(&ktr_alq, (const char *)ktr_alq_file,
1/*-
2 * Copyright (c) 2000 John Baldwin <jhb@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

140
141 if (enable) {
142 if (ktr_alq_enabled)
143 return (0);
144 error = suser(curthread);
145 if (error)
146 return (error);
147 error = alq_open(&ktr_alq, (const char *)ktr_alq_file,
148 req->td->td_ucred, sizeof(struct ktr_entry),
149 ktr_alq_depth);
148 req->td->td_ucred, ALQ_DEFAULT_CMODE,
149 sizeof(struct ktr_entry), ktr_alq_depth);
150 if (error == 0) {
151 ktr_mask &= ~KTR_ALQ_MASK;
152 ktr_alq_cnt = 0;
153 ktr_alq_failed = 0;
154 ktr_alq_enabled = 1;
155 }
156 } else {
157 if (ktr_alq_enabled == 0)

--- 173 unchanged lines hidden ---
150 if (error == 0) {
151 ktr_mask &= ~KTR_ALQ_MASK;
152 ktr_alq_cnt = 0;
153 ktr_alq_failed = 0;
154 ktr_alq_enabled = 1;
155 }
156 } else {
157 if (ktr_alq_enabled == 0)

--- 173 unchanged lines hidden ---