cuse.3 (2ca43c3dba1b818db9245027c87fddfc9d4be0a6) | cuse.3 (58a8f6e9ecabba975f2cda8416bcc36c2073a7a8) |
---|---|
1.\" $FreeBSD$ 2.\" 3.\" Copyright (c) 2010-2013 Hans Petter Selasky 4.\" 5.\" All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 100 unchanged lines hidden (view full) --- 109to the given ID. 110If both the unit and id argument is -1, all allocated units will be freed. 111This function returns 0 on success or a negative value on failure. 112See 113.Dv CUSE_ERR_XXX 114for known error codes. 115.Sh LIBRARY USAGE 116.Ft "void *" | 1.\" $FreeBSD$ 2.\" 3.\" Copyright (c) 2010-2013 Hans Petter Selasky 4.\" 5.\" All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 100 unchanged lines hidden (view full) --- 109to the given ID. 110If both the unit and id argument is -1, all allocated units will be freed. 111This function returns 0 on success or a negative value on failure. 112See 113.Dv CUSE_ERR_XXX 114for known error codes. 115.Sh LIBRARY USAGE 116.Ft "void *" |
117.Fn "cuse_vmalloc" "int size" | 117.Fn "cuse_vmalloc" "unsigned size" |
118This function allocates 119.Ar size 120bytes of memory. 121Only memory allocated by this function can be memory 122mapped by 123.Xr mmap 2 . 124This function returns a valid data pointer on success or 125.Dv NULL --- 266 unchanged lines hidden --- | 118This function allocates 119.Ar size 120bytes of memory. 121Only memory allocated by this function can be memory 122mapped by 123.Xr mmap 2 . 124This function returns a valid data pointer on success or 125.Dv NULL --- 266 unchanged lines hidden --- |