mem.4 (4b66483fd8b6ec9417916966c646abfeac99278c) | mem.4 (b92a189eb9b32f7e9db74343d46434b554a67d04) |
---|---|
1.\" Copyright (c) 1991 The Regents of the University of California. 2.\" All rights reserved. 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. --- 140 unchanged lines hidden (view full) --- 149with the MDF_FIXACTIVE flag may not be removed; a range with the MDF_BUSY 150flag may not be removed or updated. 151.Pp 152.Fa mo_arg[0] 153should be set to MEMRANGE_SET_UPDATE to update an existing 154or establish a new range, or to MEMRANGE_SET_REMOVE to remove a range. 155.Pp 156.Sh RETURN VALUES | 1.\" Copyright (c) 1991 The Regents of the University of California. 2.\" All rights reserved. 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. --- 140 unchanged lines hidden (view full) --- 149with the MDF_FIXACTIVE flag may not be removed; a range with the MDF_BUSY 150flag may not be removed or updated. 151.Pp 152.Fa mo_arg[0] 153should be set to MEMRANGE_SET_UPDATE to update an existing 154or establish a new range, or to MEMRANGE_SET_REMOVE to remove a range. 155.Pp 156.Sh RETURN VALUES |
157.Bl -tag -width 10 158.It EOPNOTSUPP | 157.Bl -tag -width Er 158.It Bq Er EOPNOTSUPP |
159Memory range operations are not supported on this architecture. | 159Memory range operations are not supported on this architecture. |
160.It ENXIO | 160.It Bq Er ENXIO |
161No memory range descriptors are available (eg. firmware has not enabled 162any). | 161No memory range descriptors are available (eg. firmware has not enabled 162any). |
163.It EINVAL | 163.It Bq Er EINVAL |
164The memory range supplied as an argument is invalid or overlaps another 165range in a fashion not supported by this architecture. | 164The memory range supplied as an argument is invalid or overlaps another 165range in a fashion not supported by this architecture. |
166.It EBUSY | 166.It Bq Er EBUSY |
167An attempt to remove or update a range failed because the range is busy. | 167An attempt to remove or update a range failed because the range is busy. |
168.It ENOSPC | 168.It Bq Er ENOSPC |
169An attempt to create a new range failed due to a shortage of hardware 170resources (eg. descriptor slots). | 169An attempt to create a new range failed due to a shortage of hardware 170resources (eg. descriptor slots). |
171.It ENOENT | 171.It Bq Er ENOENT |
172An attempt to remove a range failed because no range matches the descriptor 173base/length supplued. | 172An attempt to remove a range failed because no range matches the descriptor 173base/length supplued. |
174.It EPERM | 174.It Bq Er EPERM |
175An attempt to remove a range failed because the range is permanently 176enabled. 177.El 178.Sh BUGS 179Busy range attributes are not yet managed correctly. 180.Sh FILES 181.Bl -tag -width Pa -compact 182.It Pa /dev/mem --- 12 unchanged lines hidden --- | 175An attempt to remove a range failed because the range is permanently 176enabled. 177.El 178.Sh BUGS 179Busy range attributes are not yet managed correctly. 180.Sh FILES 181.Bl -tag -width Pa -compact 182.It Pa /dev/mem --- 12 unchanged lines hidden --- |