summaryrefslogtreecommitdiff
path: root/sys/src/9/port/devcons.c
AgeCommit message (Collapse)Author
2022-05-28kernel: be more careful about argc for /dev/drivers writesJacob Moody
Not crashing on 'chdev &' is important.
2022-05-28kernel: add chdev command to devconsJacob Moody
2020-12-19devsons: remove #c/pgrpidcinap_lenrek
The process group id is essentially a unique id of the namespace but it was never well documented nor is it used by any program.
2020-02-23devcons: fix permissions for reboot and sysstatcinap_lenrek
#c/reboot is a write only file #c/sysstat should not be writable by everyone (write resets counters)
2019-12-11devcons: fix write length of writebintime() (thanks BurnZeZ)cinap_lenrek
2017-11-26devvga: re-render text from kmesg after resizecinap_lenrek
2017-10-30devcons: remove obsolete commentcinap_lenrek
2017-10-29kernel: introduce devswap #¶ to serve /dev/swap and handle swapfile encryptioncinap_lenrek
2017-03-11kernel: get rid of active.Lock and active.thunderbirdsargocinap_lenrek
2016-11-08devcons: simplify putstrn0()cinap_lenrek
2016-09-11devcons: remove /dev/reboot "halt" command...cinap_lenrek
the "halt" command written to /dev/reboot just causes the machine to crash... its also undocumented... removing it. -- cinap
2016-09-11kernel: xoroshiro128+ generator for rand()/nrand()cinap_lenrek
the kernels custom rand() and nrand() functions where not working as specified in rand(2). now we just use libc's rand() and nrand() functions but provide a custom lrand() impelmenting the xoroshiro128+ algorithm as proposed by aiju.
2016-09-07kernel: use tk2ms() instead of TK2MS macro for process time conversioncinap_lenrek
this code isnt time critical and process TReal delta can become very long, so use tk2ms() which is less prone to overflow.
2016-08-27kernel: switch to fast portable chacha based seed-once random number generatorcinap_lenrek
2016-07-24swap: make sure swap chan has ORDWR mode on fdtochan()cinap_lenrek
2016-07-19kernel: dont pprint() into 9p channelscinap_lenrek
when fd 2 (stderr) points to a mount channel, dont cause protocol confusion by dumping error strings into it.
2016-03-10devcons: nil vs 0cinap_lenrek
2016-01-05kernel: change active.machs from bitmap to char array to support up to 64 ↵cinap_lenrek
cpus on pc64
2015-11-30kernel: cleanup exit()/shutdown()/reboot() codecinap_lenrek
introduce cpushutdown() function that does the common operation of initiating shutdown, returning once all cpu's got the message and are about to shutdown. this avoids duplicated code which isnt really machine specific. automatic reboot on panic only when *debug= is not set and the machine is a cpu server or has no display, otherwise just hang.
2015-06-16devcons: add current pool allocations to #c/swapcinap_lenrek
2014-09-28devcons: avoid division by zero reading Qsysstatcinap_lenrek
alexchandel got the kernel to crash with divide error on qemu 2.1.2/macosx at this location. probably caused by perfticks()/tsc being wrong or accounttime() not having been called yet from timer interrupt yet for some reason.
2014-06-22kernel: new pagecache, remove Lock from page, use cmpswap for Ref instead of ↵cinap_lenrek
Lock make the Page stucture less than half its original size by getting rid of the Lock and the lru. The Lock was required to coordinate the unchaining of pages that where both cached and on the lru freelist. now pages have a single next pointer that is used for palloc.head freelist xor for page cache hash chains in Image.pghash[]. cached pages are not on the freelist anymore, but will be reclaimed from images by the pager when the freelist runs out of pages. each Image has its own 512 hash chains for cached page lookup. That is 2MB worth of pages and there should be no collisions for most text images. page reclaiming can be done without holding palloc.lock as the Image is the owner of the page hash chains protected by the Image's lock. reclaiming Image structures can be done quickly by only reclaiming pages from inactive images, that is images which are not currently in use by segments. the Ref structure has no Lock anymore. Only a single long that is atomically incremented or decremnted using cmpswap(). there are various other changes as a consequence code. and lots of pikeshedding, sorry.
2014-02-07pc64: fix devcons format strings for memory sizescinap_lenrek
2014-02-01add experimental pc64 kernelcinap_lenrek
2013-06-22devcons: change /dev/kmesg buffer back to normal 16Kcinap_lenrek
this makes it consistent with the manual again.
2011-12-13panic(): dont print message twice. for terminals, dont auto reboot.cinap_lenrek
2011-12-12kernel: fix more malloc/smalloc errorscinap_lenrek
2011-09-17devcons: readd dummy consctl file so telnetd has something to bind oncinap_lenrek
2011-05-12add rdb message to /dev/rebootcinap_lenrek
2011-05-09kbdfscinap_lenrek
2011-04-21fixed mordoraiju
2011-04-16moved /dev/mordor to devconsaiju
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen