osd.9 (fa9896e082a1046ff4fbc75fcba4d18d1f2efc19) osd.9 (a51584a2d2fb3731a68eaf93b59e14227e572427)
1.\"
2.\" Copyright (c) 2010 Lawrence Stewart <lstewart@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

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

391Responsibility for synchronising access to a kernel data structure's
392.Vt struct osd
393member is left to the subsystem that uses the data structure and calls the
394.Nm
395API.
396.Pp
397.Fn osd_get
398only acquires an
1.\"
2.\" Copyright (c) 2010 Lawrence Stewart <lstewart@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

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

391Responsibility for synchronising access to a kernel data structure's
392.Vt struct osd
393member is left to the subsystem that uses the data structure and calls the
394.Nm
395API.
396.Pp
397.Fn osd_get
398only acquires an
399.Xr rmlock
399.Xr rmlock 9
400in read mode, therefore making it safe to use in the majority of contexts within
401the kernel including most fast paths.
402.Sh RETURN VALUES
403.Fn osd_register
404returns the slot identifier for the newly registered data type.
405.Pp
406.Fn osd_set
407and

--- 41 unchanged lines hidden ---
400in read mode, therefore making it safe to use in the majority of contexts within
401the kernel including most fast paths.
402.Sh RETURN VALUES
403.Fn osd_register
404returns the slot identifier for the newly registered data type.
405.Pp
406.Fn osd_set
407and

--- 41 unchanged lines hidden ---