Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 May 2016 20:11:09 -0700
From:      Adrian Chadd <adrian.chadd@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r300253 - in head: . share/man/man9 sys/sys
Message-ID:  <CAJ-VmonaOvetFdkszSrxSiw7KbyiUovRtmmky-E5hGkU=L=JNg@mail.gmail.com>
In-Reply-To: <201605200117.u4K1HckY085609@repo.freebsd.org>
References:  <201605200117.u4K1HckY085609@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Know what's funny? The broadcom siba/bhnd resources almost kinda want
this ... :P



-adrian


On 19 May 2016 at 18:17, John Baldwin <jhb@freebsd.org> wrote:
> Author: jhb
> Date: Fri May 20 01:17:38 2016
> New Revision: 300253
> URL: https://svnweb.freebsd.org/changeset/base/300253
>
> Log:
>   Remove dangling references to rman_await_resource().
>
>   This function was removed when RF_TIMESHARE was removed a couple of years
>   ago.
>
>   MFC after:    3 days
>
> Modified:
>   head/ObsoleteFiles.inc
>   head/share/man/man9/Makefile
>   head/share/man/man9/rman.9
>   head/sys/sys/rman.h
>
> Modified: head/ObsoleteFiles.inc
> ==============================================================================
> --- head/ObsoleteFiles.inc      Fri May 20 01:02:58 2016        (r300252)
> +++ head/ObsoleteFiles.inc      Fri May 20 01:17:38 2016        (r300253)
> @@ -38,6 +38,8 @@
>  #   xargs -n1 | sort | uniq -d;
>  # done
>
> +# 20160519: stale MLINK removed
> +OLD_FILES+=usr/share/man/man9/rman_await_resource.9.gz
>  # 20160517: ReiserFS removed
>  OLD_FILES+=usr/share/man/man5/reiserfs.5.gz
>  # 20160430: kvm_getfiles(3) removed from kvm(3)
>
> Modified: head/share/man/man9/Makefile
> ==============================================================================
> --- head/share/man/man9/Makefile        Fri May 20 01:02:58 2016        (r300252)
> +++ head/share/man/man9/Makefile        Fri May 20 01:17:38 2016        (r300253)
> @@ -1373,7 +1373,6 @@ MLINKS+=resource_int_value.9 resource_lo
>         resource_int_value.9 resource_string_value.9
>  MLINKS+=rman.9 rman_activate_resource.9 \
>         rman.9 rman_adjust_resource.9 \
> -       rman.9 rman_await_resource.9 \
>         rman.9 rman_deactivate_resource.9 \
>         rman.9 rman_fini.9 \
>         rman.9 rman_first_free_region.9 \
>
> Modified: head/share/man/man9/rman.9
> ==============================================================================
> --- head/share/man/man9/rman.9  Fri May 20 01:02:58 2016        (r300252)
> +++ head/share/man/man9/rman.9  Fri May 20 01:17:38 2016        (r300253)
> @@ -25,14 +25,13 @@
>  .\"
>  .\" $FreeBSD$
>  .\"
> -.Dd July 15, 2014
> +.Dd May 19, 2016
>  .Dt RMAN 9
>  .Os
>  .Sh NAME
>  .Nm rman ,
>  .Nm rman_activate_resource ,
>  .Nm rman_adjust_resource ,
> -.Nm rman_await_resource ,
>  .Nm rman_deactivate_resource ,
>  .Nm rman_fini ,
>  .Nm rman_init ,
> @@ -67,8 +66,6 @@
>  .Ft int
>  .Fn rman_adjust_resource "struct resource *r" "rman_res_t start" "rman_res_t end"
>  .Ft int
> -.Fn rman_await_resource "struct resource *r" "int pri2" "int timo"
> -.Ft int
>  .Fn rman_deactivate_resource "struct resource *r"
>  .Ft int
>  .Fn rman_fini "struct rman *rm"
> @@ -387,23 +384,6 @@ flag.
>  If other consumers are waiting for this range, it will wakeup their threads.
>  .Pp
>  The
> -.Fn rman_await_resource
> -function performs an asynchronous wait for a resource
> -.Fa r
> -to become inactive, that is, for the
> -.Dv RF_ACTIVE
> -flag to be cleared.
> -It is used to enable cooperative sharing of a resource
> -which can only be safely used by one thread at a time.
> -The arguments
> -.Fa pri
> -and
> -.Fa timo
> -are passed to the
> -.Fn rman_await_resource
> -function.
> -.Pp
> -The
>  .Fn rman_get_start ,
>  .Fn rman_get_end ,
>  .Fn rman_get_size ,
>
> Modified: head/sys/sys/rman.h
> ==============================================================================
> --- head/sys/sys/rman.h Fri May 20 01:02:58 2016        (r300252)
> +++ head/sys/sys/rman.h Fri May 20 01:17:38 2016        (r300253)
> @@ -121,7 +121,6 @@ TAILQ_HEAD(rman_head, rman);
>
>  int    rman_activate_resource(struct resource *r);
>  int    rman_adjust_resource(struct resource *r, rman_res_t start, rman_res_t end);
> -int    rman_await_resource(struct resource *r, int pri, int timo);
>  int    rman_first_free_region(struct rman *rm, rman_res_t *start, rman_res_t *end);
>  bus_space_handle_t rman_get_bushandle(struct resource *);
>  bus_space_tag_t rman_get_bustag(struct resource *);
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmonaOvetFdkszSrxSiw7KbyiUovRtmmky-E5hGkU=L=JNg>