leepen has asked for the wisdom of the Perl Monks concerning the following question:
I am writing a new module to give access to the (linux only, at the moment) ioprio_get(2) and ioprio_set(2) functions,having not found one already on CPAN.
Could I please have some advice on naming it. IO::Priority doesn't seem right as most of IO:: is actually file handle IO and this relates to disk IO. CPAN doesn't want Sys:: to be used so Sys::IO_Prio seems to be not right either.
I am also considering the API -- whether to do a thin wrapper which follows the C API closely, or something at a higher level, say with separate functions set_process_iopriority(), set_pgrp_iopriority(), set_user_iopriority() which may ease making it cross platform when other OS have the capability.
This is my first attempt at writing a module, so I would appreciate some advice from those more experienced.
Many thanks
Mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Advice on new module for IO Priority
by Anonymous Monk on Nov 14, 2011 at 16:13 UTC | |
by leepen (Novice) on Nov 29, 2011 at 14:02 UTC |