summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm
Commit message (Collapse)AuthorAgeFilesLines
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-212-2/+2
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Remove an unused variable that snuck in the last commit.anholt2002-12-041-1/+1
| | | | | Submitted by: Christian Brueffer <chris@unixpages.org> Approved by: re (rwatson)
* Fix witness warning in DRM memory info sysctl by making a temporary copy of theanholt2002-12-041-62/+17
| | | | | | | data under the lock and outputting it to the sysctl later. Reviewed by: scottl Approved by: re
* In an SMP environment post-Giant it is no longer safe to blindlytruckman2002-10-031-1/+1
| | | | | | | | | dereference the struct sigio pointer without any locking. Change fgetown() to take a reference to the pointer instead of a copy of the pointer and call SIGIO_LOCK() before copying the pointer and dereferencing it. Reviewed by: rwatson
* Remove drm_linux.h, move the two useful defines into drm_drv.h. Use fd lockinganholt2002-09-013-167/+73
| | | | | | | | on -current. Actually copy in data from userspace to kernel in the linux-compat ioctl path. Make sure ioctl sizes are as expected in the handler functions. Reviewed by: rwatson
* In continuation of early fileop credential changes, modify fo_ioctl() torwatson2002-08-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | accept an 'active_cred' argument reflecting the credential of the thread initiating the ioctl operation. - Change fo_ioctl() to accept active_cred; change consumers of the fo_ioctl() interface to generally pass active_cred from td->td_ucred. - In fifofs, initialize filetmp.f_cred to ap->a_cred so that the invocations of soo_ioctl() are provided access to the calling f_cred. Pass ap->a_td->td_ucred as the active_cred, but note that this is required because we don't yet distinguish file_cred and active_cred in invoking VOP's. - Update kqueue_ioctl() for its new argument. - Update pipe_ioctl() for its new argument, pass active_cred rather than td_ucred to MAC for authorization. - Update soo_ioctl() for its new argument. - Update vn_ioctl() for its new argument, use active_cred rather than td->td_ucred to authorize VOP_IOCTL() and the associated VOP_GETATTR(). Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Remove <sys/select.h> to unbreak the build. I'm not sure if this affectsdes2002-06-161-1/+0
| | | | | the functionality of the drm module, but hopefully it will tide us over until Eric can take a look at it.
* Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__anholt2002-05-3113-148/+148
| | | | Approved by: des
* Include <sys/lockmgr.h> for definitions of deprecated locking interfaces --bde2002-05-061-0/+1
| | | | don't depend on namespace pollution in other headers.
* Make funsetown() take a 'struct sigio **' so that the locking canalfred2002-05-061-1/+1
| | | | | | | | | | | | | | | | be done internally. Ensure that no one can fsetown() to a dying process/pgrp. We need to check the process for P_WEXIT to see if it's exiting. Process groups are already safe because there is no such thing as a pgrp zombie, therefore the proctree lock completely protects the pgrp from having sigio structures associated with it after it runs funsetownlst. Add sigio lock to witness list under proctree and allproc, but over proc and pgrp. Seigo Tanimura helped with this.
* The first argument of pgsigio() is now struct sigio **.tanimura2002-05-031-1/+1
|
* More diff reduction: Shuffle around some header code as was done inanholt2002-04-2921-239/+160
| | | | | | | drmcommand-0-0-1-branch of DRI CVS, more return code cleanup, and remove some gratuitous ifdefs. Approved by: des
* Diff reduction to my experimental code: clean up return code handling.anholt2002-04-2924-359/+354
| | | | Approved by: des
* Hook the DRM up to the build and add it to NOTES.anholt2002-04-285-5/+0
| | | | Approved by: des
* Add the code for the DRM, based on the code from the drm-kmod port.anholt2002-04-2748-0/+33683
This is not hooked up yet, that will come later. Approved by: des
OpenPOWER on IntegriCloud